OFFSET
2,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=2, (2^2-2)/7=0.285... and the digit after the point is 2.
For n=3, (3^2-2)/7=1.0000.., integer, and the digit is 0.
For n=4, (4^2-2)/7=2.0000, integer and the digit is 0.
For n=5, (5^2-2)/7=3.2857.. and the first decimal after the point is 2.
MATHEMATICA
Table[IntegerPart[10*FractionalPart[N[(n^2-2)/7]]], {n, 2, 110}] (* Harvey P. Dale, Apr 08 2013 *)
CROSSREFS
KEYWORD
nonn,base,less
AUTHOR
Vincenzo Librandi, Sep 24 2009
STATUS
approved