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”).

A037413
Positive numbers having the same set of digits in base 2 and base 8.
1
1, 8, 64, 65, 72, 512, 513, 520, 521, 576, 577, 584, 4096, 4097, 4104, 4105, 4160, 4161, 4168, 4169, 4608, 4609, 4616, 4617, 4672, 4673, 4680, 32768, 32769, 32776, 32777, 32832, 32833, 32840, 32841, 33280, 33281, 33288, 33289, 33344, 33345, 33352
OFFSET
1,2
PROG
(PARI) isok(n) = Set(digits(n, 2)) == Set(digits(n, 8)); \\ John Cerkan, Jan 13 2017
CROSSREFS
Subsequence of A033045.
Sequence in context: A014392 A008462 A043078 * A107626 A136956 A345946
KEYWORD
nonn,base
EXTENSIONS
a(28)-a(42) from John Cerkan, Jan 13 2017
Name edited by John Cerkan, Jan 14 2017
STATUS
approved