A327593 Numbers m where an integer b that is a power of two > 2 with 1 < b < m exists such that m is a base-b repdigit.
5, 9, 10, 15, 17, 18, 21, 27, 33, 34, 36, 42, 45, 51, 54, 63, 65, 66, 68, 73, 85, 99, 102, 119, 129, 130, 132, 136, 146, 153, 165, 170, 187, 195, 198, 204, 219, 221, 231, 238, 255, 257, 258, 260, 264, 273, 292, 297, 325, 330, 341, 363, 365, 387, 390, 396, 429
Offset: 1
Examples
18 written in base 8 is 22. 8 is a power of two and 22 is a repdigit, so 18 is a term of the sequence.
Programs
-
PARI
is(n) = my(b=4, d=0); while(b < n, d=digits(n, b); if(vecmin(d)==vecmax(d), return(1)); b=2*b); 0
Comments