A180593 Digital root of 3n.
0, 3, 6, 9, 3, 6, 9, 3, 6, 9, 3, 6, 9, 3, 6, 9, 3, 6, 9, 3, 6, 9, 3, 6, 9, 3, 6, 9, 3, 6, 9, 3, 6, 9, 3, 6, 9, 3, 6, 9, 3, 6, 9, 3, 6, 9, 3, 6, 9, 3, 6, 9, 3, 6, 9, 3, 6, 9, 3, 6, 9, 3, 6, 9, 3, 6, 9, 3, 6, 9, 3, 6, 9, 3, 6, 9, 3, 6, 9, 3, 6, 9, 3, 6, 9, 3, 6
Offset: 0
Links
- Index entries for linear recurrences with constant coefficients, signature (0,0,1).
Crossrefs
Programs
-
Mathematica
digitalRoot[n_Integer?Positive] := FixedPoint[Plus@@IntegerDigits[#]&,n]; Table[If[n==0,0,digitalRoot[3*n]], {n,0,200}] (* Vladimir Joseph Stephan Orlovsky, May 02 2011 *) LinearRecurrence[{0,0,1},{0,3,6,9},120] (* Harvey P. Dale, Sep 03 2020 *)
Formula
a(n+1) = 3*A010882(n). - Reinhard Zumkeller, Oct 25 2010
G.f.: (-3*(1 + 2*x + 3*x^2))/(-1 + x^3) for n>0. - Alexander R. Povolotsky, Jun 13 2012
Extensions
Edited by N. J. A. Sloane, Sep 23 2010
Comments