OFFSET
0,3
COMMENTS
Numbers without digit 7 in base 8. Complement of A337239. - 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)
EXAMPLE
a(48)=54 because 48 is 66_7 in base 7 and 66_8=54. - François Marques, Oct 13 2020
MATHEMATICA
Table[FromDigits[RealDigits[n, 7], 8], {n, 0, 100}] (* Clark Kimberling, Aug 14 2012 *)
PROG
(PARI) a(n) = fromdigits(digits(n, 7), 8); \\ François Marques, Oct 13 2020
(Python)
from gmpy2 import digits
def A037474(n): return int(digits(n, 7), 8) # Chai Wah Wu, Dec 04 2024
CROSSREFS
Cf. Numbers with at least one digit b-1 in base b : A074940 (b=3), A337250 (b=4), A337572 (b=5), A333656 (b=6), A337141 (b=7), A337239 (b=8), A338090 (b=9), A011539 (b=10), A095778 (b=11).
KEYWORD
nonn,base,easy
AUTHOR
EXTENSIONS
Offset changed to 0 by Clark Kimberling, Aug 14 2012
STATUS
approved