A340536 Digital root of 2*n^2.
2, 8, 9, 5, 5, 9, 8, 2, 9, 2, 8, 9, 5, 5, 9, 8, 2, 9, 2, 8, 9, 5, 5, 9, 8, 2, 9, 2, 8, 9, 5, 5, 9, 8, 2, 9, 2, 8, 9, 5, 5, 9, 8, 2, 9, 2, 8, 9, 5, 5, 9, 8, 2, 9, 2, 8, 9, 5, 5, 9, 8, 2, 9, 2, 8, 9, 5, 5, 9, 8, 2, 9, 2, 8, 9, 5, 5, 9, 8, 2, 9, 2, 8, 9, 5, 5, 9, 8, 2, 9
Offset: 1
Examples
For n=5, 2*5^2 = 50 and digital root is 5, so a(5) = 5.
Links
- Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,0,0,0,1).
Programs
-
PARI
dr(n) = if(n, (n-1)%9+1); \\ A010888 a(n) = dr(2*n^2); \\ Michel Marcus, Jan 21 2021
Comments