login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A039269
Numbers whose base-12 representation has the same number of 8's and 9's.
0
0, 1, 2, 3, 4, 5, 6, 7, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 82, 83
OFFSET
1,3
MATHEMATICA
Select[Range[0, 100], DigitCount[#, 12, 8]==DigitCount[#, 12, 9]&] (* Harvey P. Dale, Jan 13 2021 *)
PROG
(Python)
from itertools import count, islice
from sympy.ntheory import digits
def A039269_gen(startvalue=0): # generator of terms >= startvalue
return filter(lambda n:(s:=digits(n, 12)[1:]).count(8)==s.count(9), count(max(startvalue, 0)))
A039269_list = list(islice(A039269_gen(), 30)) # Chai Wah Wu, Apr 02 2024
CROSSREFS
Sequence in context: A001476 A336063 A336064 * A039207 A272576 A039155
KEYWORD
nonn,base,easy
STATUS
approved