|
|
A165669
|
|
First digit of the decimal expansion of (n^2+2)/7 after the decimal point.
|
|
0
|
|
|
2, 4, 8, 5, 5, 8, 4, 2, 4, 8, 5, 5, 8, 4, 2, 4, 8, 5, 5, 8, 4, 2, 4, 8, 5, 5, 8, 4, 2, 4, 8, 5, 5, 8, 4, 2, 4, 8, 5, 5, 8, 4, 2, 4, 8, 5, 5, 8, 4, 2, 4, 8, 5, 5, 8, 4, 2, 4, 8, 5, 5, 8, 4, 2, 4, 8, 5, 5, 8, 4, 2, 4, 8, 5, 5, 8, 4, 2, 4, 8, 5, 5, 8, 4, 2, 4, 8, 5, 5, 8, 4, 2, 4, 8, 5, 5, 8, 4, 2, 4, 8, 5, 5, 8, 4
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,1
|
|
COMMENTS
|
Periodic with period length 7.
|
|
LINKS
|
|
|
FORMULA
|
a(n) = floor(10*(n^2+2)/7) mod 10. [R. J. Mathar, Sep 23 2009]
|
|
EXAMPLE
|
For n=0, (0^2+2)/7=0.285.... and 2 is the first digit after the point.
For n=1, (1^2+2)/7=0.4285..., and 4 is the first digit after the point.
|
|
MATHEMATICA
|
Table[Mod[Floor[10*N[(n^2+2)/7]], 10], {n, 0, 110}] (* Harvey P. Dale, Jul 05 2015 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,easy,less
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|