A333423 Numbers that are palindromes in primorial base.
0, 1, 3, 7, 9, 11, 31, 39, 47, 211, 217, 223, 229, 235, 243, 249, 255, 261, 267, 275, 281, 287, 293, 299, 2311, 2347, 2383, 2419, 2455, 2523, 2559, 2595, 2631, 2667, 2735, 2771, 2807, 2843, 2879, 30031, 30061, 30091, 30121, 30151, 30181, 30211, 30247, 30277, 30307
Offset: 1
Examples
3 is a term since its representation in primorial base is 11 (1 * 2# + 1) which is a palindrome. 7 is a term since its representation in primorial base is 101 (1 * 3# + 0 * 2# + 1 = 6 + 1) which is a palindrome.
Links
- Amiram Eldar, Table of n, a(n) for n = 1..2500
- Wikipedia, Primorial number system.
- Index entries for sequences related to primorial base.
Crossrefs
Programs
-
Mathematica
max = 6; bases = Prime @ Range[max, 1, -1]; nmax = Times @@ bases - 1; Select[Range[0, nmax], PalindromeQ @ IntegerDigits[#, MixedRadix[bases]] &]