A037465 a(n) = Sum_{i=0..m} d(i)*6^i, where Sum_{i=0..m} d(i)*5^i is the base 5 representation of n.
0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 12, 13, 14, 15, 16, 18, 19, 20, 21, 22, 24, 25, 26, 27, 28, 36, 37, 38, 39, 40, 42, 43, 44, 45, 46, 48, 49, 50, 51, 52, 54, 55, 56, 57, 58, 60, 61, 62, 63, 64, 72, 73, 74, 75, 76, 78, 79, 80, 81, 82, 84, 85, 86, 87, 88, 90, 91, 92, 93
Offset: 0
Examples
a(34)=46 because 34 is 114_5 in base 5 and 114_6=46. - _François Marques_, Oct 13 2020
Links
- François Marques, Table of n, a(n) for n = 0..10000 (first 1000 terms from Clark Kimberling)
Crossrefs
Programs
-
Mathematica
Table[FromDigits[RealDigits[n, 5], 6], {n, 0, 100}] (* Clark Kimberling, Aug 14 2012 *)
-
PARI
a(n) = fromdigits(digits(n, 5), 6); \\ François Marques, Oct 13 2020
-
Python
from gmpy2 import digits def A037465(n): return int(digits(n,5),6) # Chai Wah Wu, May 06 2025
Extensions
Offset changed to 0 by Clark Kimberling, Aug 14 2012
Comments