Press L+R to change the amount of the first item in your bag to 467. Then throw this item in order to have an amount that matches the attack number you want in the table below, and finally press R to modify TM 17.