OFFSET
0,1
COMMENTS
Periodic with period length 7.
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
Vincenzo Librandi, Sep 24 2009
EXTENSIONS
Edited by R. J. Mathar, Sep 26 2009
STATUS
approved