A262188 Table read by rows: row n contains all distinct palindromes contained as substrings in decimal representation of n.
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 1, 11, 1, 2, 1, 3, 1, 4, 1, 5, 1, 6, 1, 7, 1, 8, 1, 9, 0, 2, 1, 2, 2, 22, 2, 3, 2, 4, 2, 5, 2, 6, 2, 7, 2, 8, 2, 9, 0, 3, 1, 3, 2, 3, 3, 33, 3, 4, 3, 5, 3, 6, 3, 7, 3, 8, 3, 9, 0, 4, 1, 4, 2, 4, 3, 4, 4, 44, 4, 5, 4, 6, 4
Offset: 0
Examples
. n | T(n,*) n | T(n,*) n | T(n,*) . -----+----------- ------+------------- -------+-------------- . 100 | 0,1 1000 | 0,1 10000 | 0,1 . 101 | 0,1,101 1001 | 0,1,1001 10001 | 0,1,10001 . 102 | 0,1,2 1002 | 0,1,2 10002 | 0,1,2 . 103 | 0,1,3 1003 | 0,1,3 10003 | 0,1,3 . 104 | 0,1,4 1004 | 0,1,4 10004 | 0,1,4 . 105 | 0,1,5 1005 | 0,1,5 10005 | 0,1,5 . 106 | 0,1,6 1006 | 0,1,6 10006 | 0,1,6 . 107 | 0,1,7 1007 | 0,1,7 10007 | 0,1,7 . 108 | 0,1,8 1008 | 0,1,8 10008 | 0,1,8 . 109 | 0,1,9 1009 | 0,1,9 10009 | 0,1,9 . 110 | 0,1,11 1010 | 0,1,101 10010 | 0,1,1001 . 111 | 1,11,111 1011 | 0,1,11,101 10011 | 0,1,11,1001 . 112 | 1,2,11 1012 | 0,1,2,101 10012 | 0,1,2,1001 . 113 | 1,3,11 1013 | 0,1,3,101 10013 | 0,1,3,1001 . 114 | 1,4,11 1014 | 0,1,4,101 10014 | 0,1,4,1001 . 115 | 1,5,11 1015 | 0,1,5,101 10015 | 0,1,5,1001 . 116 | 1,6,11 1016 | 0,1,6,101 10016 | 0,1,6,1001 . 117 | 1,7,11 1017 | 0,1,7,101 10017 | 0,1,7,1001 . 118 | 1,8,11 1018 | 0,1,8,101 10018 | 0,1,8,1001 . 119 | 1,9,11 1019 | 0,1,9,101 10019 | 0,1,9,1001 . 120 | 0,1,2 1020 | 0,1,2 10020 | 0,1,2 . 121 | 1,2,121 1021 | 0,1,2 10021 | 0,1,2 . 122 | 1,2,22 1022 | 0,1,2,22 10022 | 0,1,2,22 . 123 | 1,2,3 1023 | 0,1,2,3 10023 | 0,1,2,3 . 124 | 1,2,4 1024 | 0,1,2,4 10024 | 0,1,2,4 . 125 | 1,2,5 1025 | 0,1,2,5 10025 | 0,1,2,5 .
Links
Crossrefs
Programs
-
Haskell
import Data.List (inits, tails, nub, sort) a262188 n k = a262188_tabf !! n !! k a262188_row n = a262188_tabf !! n a262188_tabf = map (sort . nub . map (foldr (\d v -> 10 * v + d) 0) . filter (\xs -> length xs == 1 || last xs > 0 && reverse xs == xs) . concatMap (tail . inits) . tails) a031298_tabf
-
PARI
A262188_row(n,b=10)=Set(concat(vector(logint(n+!n,b)+1,m,m=n\=b^(m>1);select(is_A002113,vector(logint(m+!m,b)+1,k,m%b^k))))) \\ M. F. Hasler, Jun 19 2018
Comments