login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A100401 Digital root of 3^n. 2
1, 3, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
This sequence also gives the digital root of 12^n, 21^n, 30^n, 39^n, 48^n, 57^n, ... (any k^n where k is congruent to 3 mod 9). - Timothy L. Tiffin, Dec 02 2023
LINKS
FORMULA
a(n) = 3^n mod 18. - Zerinvary Lajos, Nov 25 2009
From Timothy L. Tiffin, Nov 30 2023: (Start)
a(n) = 9 for n >= 2.
G.f.: (1+2x+6x^2)/(1-x).
a(n) = A100403(n) for n <> 1. (End)
a(n) = A010888(A000244(n)). - Michel Marcus, Dec 01 2023
a(n) = A010888(A001021(n)) = A010888(A009965(n)) = A010888(A009974(n)) = A010888(A009983(n)) = A010888(A009992(n)) = A010888(A225374(n)). - Timothy L. Tiffin, Dec 02 2023
EXAMPLE
For n=14, the digits of 3^14 = 4782969 sum to 45, whose digits sum to 9. So, a(14) = 9.
MATHEMATICA
Table[PowerMod[3, n, 18], {n, 0, 100}] (* Timothy L. Tiffin, Dec 03 2023 *)
PadRight[{1, 3}, 100, 9] (* Timothy L. Tiffin, Dec 03 2023 *)
PROG
(Sage) [power_mod(3, n, 18) for n in range(105)] # Zerinvary Lajos, Nov 25 2009
(PARI) a(n) = if( n<2, [1, 3][n+1], 9); \\ Joerg Arndt, Dec 03 2023
CROSSREFS
Sequence in context: A188444 A201409 A111120 * A004166 A110759 A063750
KEYWORD
easy,nonn,base
AUTHOR
Cino Hilliard, Dec 30 2004
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 02:46 EDT 2024. Contains 371917 sequences. (Running on oeis4.)