login
A037905
a(n) = 9 - (floor(n*Pi) mod 9).
0
6, 3, 9, 6, 3, 9, 6, 2, 8, 5, 2, 8, 5, 2, 7, 4, 1, 7, 4, 1, 7, 3, 9, 6, 3, 9, 6, 3, 8, 5, 2, 8, 5, 2, 8, 4, 1, 7, 4, 1, 7, 4, 9, 6, 3, 9, 6, 3, 9, 5, 2, 8, 5, 2, 8, 5, 1, 7, 4, 1, 7, 4, 1, 6, 3, 9, 6, 3, 9, 6, 2, 8, 5, 2, 8, 5, 2, 7, 4, 1, 7, 4, 1, 7, 3, 9, 6, 3, 9, 6, 3, 8, 5, 2, 8, 5, 2, 8, 4, 1, 7, 4, 1, 7, 4
OFFSET
1,1
EXAMPLE
a(1) = 9 - (floor(1*Pi) mod 9) = 9 - 3 = 6.
a(2) = 9 - (floor(2*Pi) mod 9) = 9 - 6 = 3.
a(3) = 9 - (floor(3*Pi) mod 9) = 9 - 0 = 9.
MATHEMATICA
9-Mod[Floor[Pi Range[110]], 9] (* Harvey P. Dale, Oct 24 2017 *)
CROSSREFS
Sequence in context: A093754 A135935 A263183 * A180596 A154465 A176533
KEYWORD
nonn,easy
AUTHOR
Roger L. Bagula, Jun 27 2002
EXTENSIONS
Edited by Robert G. Wilson v, Jun 27 2002
STATUS
approved