A295010 Self-slideable numbers: numbers which can reproduce themselves by sliding each digit d by d places either to the left or to the right.
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 22, 33, 44, 55, 66, 77, 88, 99, 110, 111, 202, 222, 333, 444, 555, 666, 777, 888, 999, 1100, 1111, 2020, 2222, 3003, 3113, 3333, 4444, 5555, 6666, 7777, 8888, 9999, 11000, 11011, 11110, 11111, 11202, 12222, 20200, 20211
Offset: 1
Examples
12222 is in the sequence because one can slide the 1 and three of the 2's to the right (by one resp. two places), and the last 2 by two places to the left, and get back the same number, shifted one place to the right.
Links
- M. F. Hasler, Table of n, a(n) for n = 1..131
Programs
-
PARI
is_A295010(n,d=matdiagonal(n=digits(n)),v=[1..#n]+n)={!n||forvec( s=vector(#n,i,[0,1]),vecmax(p=v-2*s*d)+1==vecmin(p)+#p&p==#Set(p)&&sum(i=1,#p,10^(vecmax(p)-p[i])*n[i])==fromdigits(n,10)&&return(1))}
Comments