OFFSET
1,1
COMMENTS
Subsequence of A016993. - Michel Marcus, Sep 03 2013
In general, the set of numbers with sum of base-b digits equal to b is a subset of { (b-1)*k + 1; k = 2, 3, 4, ... }. - M. F. Hasler, Dec 23 2016
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000
EXAMPLE
The 8-ary expansion of 15 is (1,7), which has sum of digits 8.
The 8-ary expansion of 78 is (1,1,6), which has sum of digits 8.
10 is not on the list since the 8-ary expansion of 10 is (1,2), which has sum of digits 3 not 8.
MATHEMATICA
Select[Range@ 603, Total@ IntegerDigits[#, 8] == 8 &] (* Michael De Vlieger, Dec 23 2016 *)
PROG
(Sage) [i for i in [0..1000] if sum(Integer(i).digits(base=8))==8]
(PARI) select( is(n)=sumdigits(n, 8)==8, [1..999]) \\ M. F. Hasler, Dec 23 2016
(Python)
agen = A226636gen(sod=8, base=8) # generator of terms using code in A226636
print([next(agen) for n in range(1, 55)]) # Michael S. Branicky, Jul 10 2022
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Tom Edgar, Sep 01 2013
STATUS
approved