A010690 Period 2: repeat (1,9).
1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1
Offset: 0
Examples
0.191919191919191919191919191919191919191...
Links
- Index entries for linear recurrences with constant coefficients, signature (0,1).
Programs
-
Mathematica
5+4*(-1)^# &/@Range[81] (* Ant King, Jan 21 2012 *)
-
PARI
a(n)=1; if(n%2==1, 9, 1) \\ Felix Fröhlich, Aug 11 2014
Formula
G.f.: (1+9x)/((1-x)(1+x)). - R. J. Mathar, Nov 21 2011
a(n) = 9^n mod 10. - Martin Renner, Jun 11 2020
E.g.f.: cosh(x) + 9*sinh(x). - Stefano Spezia, Feb 09 2025
From Amiram Eldar, Jun 09 2025: (Start)
With offset 1:
Multiplicative with a(2^e) = 9, a(p^e) = 1 for an odd prime p.
Dirichlet g.f.: zeta(s) * (1 + 1/2^(s-3)). (End)
Comments