Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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
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
Cf. A165664.
Sequence in context: A364611 A092892 A146079 * A227818 A300890 A021893
KEYWORD
nonn,base,easy,less
AUTHOR
Vincenzo Librandi, Sep 24 2009
EXTENSIONS
Edited by R. J. Mathar, Sep 26 2009
STATUS
approved