A037301 Numbers whose base-2 and base-3 expansions have the same digit sum.
0, 1, 6, 7, 10, 11, 12, 13, 18, 19, 21, 36, 37, 46, 47, 58, 59, 60, 61, 86, 92, 102, 103, 114, 115, 120, 121, 166, 167, 172, 173, 180, 181, 198, 199, 216, 217, 222, 223, 261, 273, 282, 283, 285, 298, 299, 300, 301, 306, 307, 309, 318
Offset: 1
Links
- Stanislav Sykora, Table of n, a(n) for n = 1..10000
- Vladimir Shevelev, Compact integers and factorials, Acta Arith. 126 (2007), no. 3, 195-236.
- Vladimir Shevelev, Binomial predictors, arXiv:0907.3302 [math.NT], 2009.
- Lukas Spiegelhofer, Collisions of the binary and ternary sum-of-digits functions, arXiv:2105.11173 [math.NT], 2021. Proves that sequence is infinite.
Programs
-
Mathematica
Select[ Range@ 320, Total@ IntegerDigits[#, 2] == Total@ IntegerDigits[#, 3] &] (* Robert G. Wilson v, Oct 24 2014 *)
-
PARI
is(n)=sumdigits(n,3)==hammingweight(n) \\ Charles R Greathouse IV, May 21 2015
Formula
Extensions
Zero prepended by Zak Seidov, May 31 2010
Comments