Skip to main content

1985 AIME Problem 10

Problem 10 of 15IntermediateAlgebraNumber TheoryCombinatorics

How many of the first 10001000 positive integers can be expressed in the form ⌊2x⌋+⌊4x⌋+⌊6x⌋+⌊8x⌋, \lfloor2x\rfloor+\lfloor4x\rfloor+\lfloor6x\rfloor+\lfloor8x\rfloor, where xx is a real number, and ⌊z⌋\lfloor z\rfloor denotes the greatest integer less than or equal to z?z?

Your answer

Integer from 0 to 999
Show solution

Solution

Let y=2x=m+r,y=2x=m+r, where mm is an integer and 0≤r<1.0\leq r\lt1. The expression is 10m+⌊r⌋+⌊2r⌋+⌊3r⌋+⌊4r⌋. 10m+\lfloor r\rfloor+\lfloor2r\rfloor+\lfloor3r\rfloor+\lfloor4r\rfloor. Checking the breakpoints r=14,r=\frac{1}{4}, 13,\frac{1}{3}, 12,\frac{1}{2}, 23,\frac{2}{3}, 34\frac{3}{4} shows that the fractional-part contribution takes exactly the values 0,0, 1,1, 2,2, 4,4, 5,5, and 6.6. Thus precisely six residue classes modulo 1010 are attainable. Among the first 10001000 positive integers, this gives 100⋅6=600.100\cdot6=600.
AoPS wiki

Tagged: floor and ceiling functions · modular arithmetic · counting integers in a range

More practice