OFFSET
0,1
COMMENTS
Numbers whose digital root is 5. - Halfdan Skjerning, Mar 15 2018
REFERENCES
R. K. Guy, Unsolved Problems in Number Theory, Springer, 1st edition, 1981. See section D5.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..5000
Tanya Khovanova, Recursive Sequences
Index entries for linear recurrences with constant coefficients, signature (2,-1).
FORMULA
G.f.: (5+4*x)/(1-x)^2. - R. J. Mathar, Mar 20 2018
From G. C. Greubel, Jan 06 2023: (Start)
a(n) = a(n-1) + 9, with a(0) = 5.
E.g.f.: (5 + 9*x)*exp(x). (End)
MAPLE
seq(9*w+5, w=0..100); # Matt C. Anderson, May 18 2017
MATHEMATICA
Range[5, 1000, 9] (* Vladimir Joseph Stephan Orlovsky, May 28 2011 *)
9*Range[0, 60]+5 (* or *) LinearRecurrence[{2, -1}, {5, 14}, 60] (* Harvey P. Dale, Jul 05 2021 *)
PROG
(PARI) forstep(n=5, 500, 9, print1(n", ")) \\ Charles R Greathouse IV, May 28 2011
(Magma) [9*n+5: n in [0..60]]; // Vincenzo Librandi, Jul 24 2011
(SageMath) [9*n+5 for n in range(51)] # G. C. Greubel, Jan 06 2023
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved