login
A165664
First digit of the decimal expansion of (n^2-2)/7 after the decimal point.
1
2, 0, 0, 2, 8, 7, 8, 2, 0, 0, 2, 8, 7, 8, 2, 0, 0, 2, 8, 7, 8, 2, 0, 0, 2, 8, 7, 8, 2, 0, 0, 2, 8, 7, 8, 2, 0, 0, 2, 8, 7, 8, 2, 0, 0, 2, 8, 7, 8, 2, 0, 0, 2, 8, 7, 8, 2, 0, 0, 2, 8, 7, 8, 2, 0, 0, 2, 8, 7, 8, 2, 0, 0, 2, 8, 7, 8, 2, 0, 0, 2, 8, 7, 8, 2, 0, 0, 2, 8, 7, 8, 2, 0, 0, 2, 8, 7, 8, 2, 0, 0, 2, 8, 7, 8
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
Sequence in context: A246814 A116597 A202496 * A019263 A244132 A337615
KEYWORD
nonn,base,less
AUTHOR
Vincenzo Librandi, Sep 24 2009
STATUS
approved