login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

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