login
A081930
Triangle read by rows in which row n gives n smallest palindromic numbers of n digits each.
3
0, 11, 22, 101, 111, 121, 1001, 1111, 1221, 1331, 10001, 10101, 10201, 10301, 10401, 100001, 101101, 102201, 103301, 104401, 105501, 1000001, 1001001, 1002001, 1003001, 1004001, 1005001, 1006001, 10000001, 10011001, 10022001, 10033001, 10044001, 10055001, 10066001, 10077001
OFFSET
1,2
PROG
(Python)
def A081930(n, k):
s = str(10**((n-1)//2)-(n==1)+k-1)
return int(s+s[-1-n%2::-1]) # Pontus von Brömssen, Aug 24 2024
CROSSREFS
Sequence in context: A225361 A111696 A047902 * A143964 A034708 A091784
KEYWORD
base,nonn,tabl
AUTHOR
Amarnath Murthy, Apr 01 2003
EXTENSIONS
Corrected and extended by Joshua Zucker, Feb 13 2006
STATUS
approved