login
Number of length-n 0..n arrays with no repeated value differing from the previous repeated value by other than plus two or minus 1.
1

%I #5 Mar 02 2016 07:41:40

%S 2,9,60,567,6876,101999,1789528,36254755,833022466,21405491763,

%T 608269658548,18940014187981,641288235101528,23458631849042641,

%U 921973961506659528,38744802632600163683,1733648542829648188818

%N Number of length-n 0..n arrays with no repeated value differing from the previous repeated value by other than plus two or minus 1.

%C Diagonal of A269640.

%H R. H. Hardin, <a href="/A269634/b269634.txt">Table of n, a(n) for n = 1..210</a>

%e Some solutions for n=6

%e ..2. .3. .6. .2. .3. .0. .4. .2. .3. .1. .2. .0. .2. .5. .6. .4

%e ..6. .1. .2. .5. .4. .2. .0. .5. .0. .5. .5. .4. .1. .6. .1. .6

%e ..6. .4. .6. .4. .4. .5. .5. .6. .4. .1. .4. .4. .6. .4. .6. .1

%e ..1. .2. .1. .0. .2. .5. .4. .0. .3. .2. .2. .6. .3. .1. .6. .4

%e ..4. .6. .3. .0. .6. .4. .5. .2. .4. .5. .3. .6. .5. .2. .2. .3

%e ..1. .0. .2. .3. .6. .3. .3. .6. .6. .4. .3. .5. .4. .1. .4. .6

%Y Cf. A269640.

%K nonn

%O 1,1

%A _R. H. Hardin_, Mar 02 2016