A306106 Numbers with digits in {0,1,2,3} such that every other digit is strictly less than its neighbors.
0, 1, 2, 3, 10, 20, 21, 30, 31, 32, 101, 102, 103, 201, 202, 203, 212, 213, 301, 302, 303, 312, 313, 323, 1010, 1020, 1021, 1030, 1031, 1032, 2010, 2020, 2021, 2030, 2031, 2032, 2120, 2121, 2130, 2131, 2132, 3010, 3020, 3021, 3030, 3031, 3032, 3120, 3121, 3130, 3131, 3132, 3230, 3231, 3232, 10101, 10102, 10103
Offset: 1
Crossrefs
Programs
-
PARI
A(Nmax=100, K=3, A=[0..K], i=vector(2*K, i, max(1, i-K+1)), c(T, v)=apply(t->t+T, v))={for(n=0, oo, for(k=10, K*11, if(k%10
Comments