A134568 a(n) = least m such that {-m*r} > {n*r}, where { } denotes fractional part and r = sqrt(2).
1, 5, 1, 3, 1, 1, 5, 1, 3, 1, 1, 29, 1, 5, 1, 3, 1, 1, 5, 1, 3, 1, 1, 17, 1, 5, 1, 3, 1, 1, 5, 1, 3, 1, 1, 5, 1, 3, 1, 1, 29, 1, 5, 1, 3, 1, 1, 5, 1, 3, 1, 1, 17, 1, 5, 1, 3, 1, 1, 5, 1, 3, 1, 1, 5, 1, 3, 1, 1, 169, 1, 5, 1, 3, 1, 1, 5, 1, 3, 1, 1, 29, 1, 5, 1, 3, 1, 1, 5, 1, 3, 1, 1, 17, 1, 5, 1, 3, 1, 1, 5
Offset: 1
Keywords
Examples
a(2)=5 because {-m*r} < {2*r} = 0.828... for m=1,2,3,4 whereas {-5*r} = 0.9289..., so that 5 is the least m for which {-m*r} > {2*r}.
Crossrefs
Cf. A134569.
Comments