|
|
A289469
|
|
Numbers k such that it is possible to form a palindrome by concatenating the first k positive integers in some order.
|
|
1
|
|
|
1, 19, 20, 21, 22, 39, 40, 41, 59, 60, 61, 79, 80, 81, 98, 99, 122, 201, 219, 220
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
For k=19 and k=20 there are 8! such palindromes.
There are no such palindromes for k = 101, 119, 121, 139, 141, 159, 161, 179, 181, 199. This is because it is impossible to have a pair matching "100".
It is unknown whether there exist palindromes that are a concatenation of the first k primes. The list of k for which such palindromes could exist is in S001070 (see Noe's link). It has been proven that k=36 and k=247 cannot exist.
For k=21, 11612160 admissible permutations produce 8069040 distinct palindromes. These counts are respectively equal to 20240640 and 13633200 for k=22. - Giovanni Resta, Sep 02 2017
|
|
LINKS
|
|
|
EXAMPLE
|
For k=19 one palindrome is 1.12.3.14.7.15.6.18.9.10.19.8.16.5.17.4.13.2.11 => 11231471561891019816517413211. This palindrome is the smallest such palindrome that is prime.
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,hard,more
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|