|
|
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
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,3
|
|
LINKS
|
|
|
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)))
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|