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!)
A215092 a(n) = Sum_{i=0..m} d(i)*3^i, where Sum_{i=0..m} d(i)*6^i is the base-6 representation of n. 1
1, 2, 3, 4, 5, 3, 4, 5, 6, 7, 8, 6, 7, 8, 9, 10, 11, 9, 10, 11, 12, 13, 14, 12, 13, 14, 15, 16, 17, 15, 16, 17, 18, 19, 20, 9, 10, 11, 12, 13, 14, 12, 13, 14, 15, 16, 17, 15, 16, 17, 18, 19, 20, 18, 19, 20, 21, 22, 23, 21, 22, 23, 24, 25, 26, 24, 25, 26, 27, 28, 29, 18 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
a(n) = 3*a(n/6) if n == 0 (mod 6); otherwise a(n) = a(n-1)+1.
MATHEMATICA
Table[FromDigits[RealDigits[n, 6], 3], {n, 0, 100}]
PROG
(Magma) [n eq 1 select 1 else n mod 6 eq 0 select 3*Self(n div 6) else Self(n-1)+1: n in [1..72]]; // Bruno Berselli, Jan 25 2018
CROSSREFS
Cf. A037454.
Sequence in context: A127064 A279850 A117607 * A345018 A309079 A194551
KEYWORD
nonn,base,easy
AUTHOR
Clark Kimberling, Aug 13 2012
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 18 13:50 EDT 2024. Contains 371780 sequences. (Running on oeis4.)