A269657
Number of length-4 0..n arrays with no adjacent pair x,x+1 repeated.
Original entry on oeis.org
1, 15, 79, 253, 621, 1291, 2395, 4089, 6553, 9991, 14631, 20725, 28549, 38403, 50611, 65521, 83505, 104959, 130303, 159981, 194461, 234235, 279819, 331753, 390601, 456951, 531415, 614629, 707253, 809971, 923491, 1048545, 1185889, 1336303
Offset: 0
From _M. F. Hasler_, Feb 29 2020: (Start)
For n=0, the only length-4 0..0 array is (0,0,0,0) and it satisfies the restriction, so a(0) = 1.
For n=1, there is only one 4-tuple with coefficients in 0..1 which has a repeated pair (x,x+1), namely (0,1,0,1). Thus, a(1) = 2^4 - 1 = 15.
For n=2, there are two 4-tuples with coefficients in 0..2 which have a repeated pair (x,x+1), namely (0,1,0,1) and (1,2,1,2). Thus, a(1) = 3^4 - 2 = 79.
(End)
Some solutions for n=3 (length-4 arrays shown as columns):
1 1 0 2 0 2 2 3 0 3 2 1 0 3 1 1
1 0 0 1 3 2 0 1 2 3 2 1 2 0 0 2
1 1 2 2 1 0 0 2 2 0 2 0 0 0 0 1
3 3 0 1 0 0 1 2 2 1 3 3 2 2 0 3
-
Denominator/@Flatten[Table[x/.Solve[m-Sqrt[-1/(1/(1/(1-x)-(m-1))-(m+1))]==0],{m,2,34}]] (* Ed Pegg Jr, Jan 14 2020 *)
-
apply( {A269657(n)=(n+1)^4-n}, [0..44]) \\ M. F. Hasler, Feb 29 2020
A269658
Number of length-5 0..n arrays with no adjacent pair x,x+1 repeated.
Original entry on oeis.org
1, 26, 225, 988, 3065, 7686, 16681, 32600, 58833, 99730, 160721, 248436, 370825, 537278, 758745, 1047856, 1419041, 1888650, 2475073, 3198860, 4082841, 5152246, 6434825, 7960968, 9763825, 11879426, 14346801, 17208100, 20508713, 24297390
Offset: 0
From _M. F. Hasler_, Feb 29 2020: (Start)
For n=0, there is only one array of length 5 with coefficients in 0..0, (0,0,0,0,0), and it satisfies the requirement, so a(0) = 1.
For n=1, the six arrays of length 5 with coefficients in 0..1 which do not satisfy the requirement are {(0,1,0,1,x), (0,1,x,0,1), (x,0,1,0,1); 0 <= x <= 1}, so a(1) = 2^5 - 6 = 26.
(End)
Some solutions for n=3:
2 3 1 0 0 3 3 0 0 0 0 3 2 3 2 2
2 0 3 3 2 3 3 1 2 3 0 3 3 1 0 3
1 0 2 1 1 1 3 2 3 2 3 2 0 1 2 0
0 2 0 1 0 2 2 2 1 3 3 2 2 1 3 3
2 3 0 0 0 1 1 3 1 0 1 0 1 1 1 1
A269659
Number of length-6 0..n arrays with no adjacent pair x,x+1 repeated.
Original entry on oeis.org
42, 626, 3816, 15036, 45590, 115902, 259476, 527576, 994626, 1764330, 2976512, 4814676, 7514286, 11371766, 16754220, 24109872, 33979226, 47006946, 63954456, 85713260, 113318982, 147966126, 191023556, 244050696, 308814450, 387306842
Offset: 1
Some solutions for n=3:
..1. .3. .3. .1. .2. .0. .1. .2. .2. .0. .3. .2. .2. .0. .2. .2
..1. .0. .3. .0. .2. .0. .1. .3. .2. .0. .2. .0. .1. .3. .1. .0
..1. .2. .0. .0. .2. .2. .2. .0. .0. .0. .0. .3. .0. .2. .0. .2
..2. .0. .1. .3. .2. .0. .3. .1. .2. .2. .1. .3. .0. .2. .2. .0
..1. .0. .2. .0. .0. .3. .0. .1. .0. .2. .0. .1. .1. .0. .1. .1
..3. .1. .2. .1. .2. .2. .0. .1. .3. .0. .2. .3. .2. .0. .2. .3
A269660
Number of length-7 0..n arrays with no adjacent pair x,x+1 repeated.
Original entry on oeis.org
64, 1710, 14596, 73348, 269472, 803434, 2061940, 4725456, 9911008, 19355302, 35643204, 62486620, 105058816, 170389218, 267823732, 409555624, 611232000, 892640926, 1278484228, 1799241012, 2492126944, 3402154330, 4583298036
Offset: 1
Some solutions for n=3:
..1. .1. .0. .0. .2. .0. .0. .2. .0. .1. .0. .1. .2. .0. .1. .2
..3. .1. .0. .1. .0. .3. .3. .0. .0. .0. .1. .2. .0. .3. .3. .2
..0. .0. .2. .2. .1. .1. .0. .1. .2. .2. .3. .3. .3. .3. .1. .2
..1. .3. .0. .0. .0. .3. .1. .0. .3. .3. .0. .1. .2. .0. .1. .1
..2. .0. .1. .0. .3. .2. .1. .2. .0. .2. .0. .0. .1. .0. .3. .3
..0. .2. .2. .2. .3. .0. .2. .2. .3. .2. .0. .0. .2. .3. .0. .3
..3. .3. .1. .2. .1. .3. .1. .1. .2. .2. .0. .2. .2. .3. .3. .2
A269649
Number of length-n 0..n arrays with no adjacent pair x,x+1 repeated.
Original entry on oeis.org
2, 9, 64, 621, 7686, 115902, 2061940, 42277329, 981592964, 25455321375, 729233710320, 22870710513322, 779384544768952, 28676004488510379, 1132947222095403840, 47837636065465105365, 2149808857973618974752
Offset: 1
Some solutions for n=6
..6. .3. .1. .2. .4. .5. .2. .2. .4. .4. .6. .4. .4. .4. .0. .0
..0. .3. .6. .2. .4. .3. .4. .1. .4. .4. .4. .2. .4. .0. .3. .6
..5. .0. .0. .2. .5. .1. .1. .3. .3. .4. .4. .5. .4. .2. .6. .4
..3. .0. .5. .4. .6. .5. .2. .1. .2. .5. .5. .3. .0. .5. .3. .5
..5. .4. .3. .3. .3. .1. .0. .5. .0. .5. .0. .6. .4. .6. .5. .1
..0. .6. .6. .0. .0. .5. .1. .4. .2. .4. .5. .3. .0. .0. .5. .0
A269650
Number of length-n 0..2 arrays with no adjacent pair x,x+1 repeated.
Original entry on oeis.org
3, 9, 27, 79, 225, 626, 1710, 4605, 12259, 32320, 84504, 219356, 565816, 1451349, 3704271, 9412153, 23818707, 60055275, 150913073, 378064818, 944442242, 2353140149, 5848794543, 14504575980, 35894673012, 88654500384, 218560230944
Offset: 1
Some solutions for n=9:
..1. .2. .2. .0. .0. .2. .1. .2. .2. .2. .0. .0. .2. .1. .1. .0
..1. .1. .0. .0. .0. .0. .2. .1. .1. .2. .2. .2. .0. .1. .2. .0
..1. .2. .2. .0. .0. .1. .0. .0. .0. .1. .2. .2. .1. .1. .2. .0
..1. .1. .1. .0. .2. .0. .2. .1. .2. .2. .0. .2. .2. .1. .1. .1
..0. .1. .0. .2. .1. .0. .2. .1. .2. .0. .2. .2. .1. .2. .0. .1
..0. .0. .1. .0. .1. .2. .2. .2. .2. .2. .2. .0. .1. .2. .0. .1
..2. .2. .2. .2. .2. .0. .2. .2. .1. .2. .2. .2. .0. .0. .2. .0
..0. .2. .0. .0. .2. .0. .1. .2. .2. .0. .2. .0. .0. .0. .2. .2
..2. .2. .0. .1. .0. .2. .1. .0. .2. .1. .2. .2. .0. .1. .2. .1
-
T:= Matrix(12,12):
for i from 1 to 12 do T[i,i]:= 1 od:
T[1,6]:= 1: T[3,8]:= 1:
T[5,11]:= 1: T[6,12]:= 1:
for i from 1 to 4 do T[i,i+8]:= 1; T[i+4,i]:= 1; T[i+8,i]:= 1; T[i+8,i+4]:= 1 od:
u:= <1,0,0,0,1,0,0,0,1,0,0,0>: v:= <1$12>:
seq(u^%T . T^i . v, i = 0 .. 50); # Robert Israel, Apr 19 2023
A269651
Number of length-n 0..3 arrays with no adjacent pair x,x+1 repeated.
Original entry on oeis.org
4, 16, 64, 253, 988, 3816, 14596, 55344, 208196, 777582, 2885120, 10640607, 39027196, 142415244, 517252820, 1870499543, 6736838192, 24172420350, 86428990624, 308016010824, 1094338584760, 3876828265788, 13696906252336
Offset: 1
Some solutions for n=8
..3. .0. .1. .1. .1. .1. .0. .1. .2. .2. .2. .2. .3. .3. .1. .3
..1. .2. .1. .2. .3. .3. .3. .0. .0. .2. .1. .0. .3. .1. .3. .3
..3. .2. .0. .3. .1. .2. .3. .3. .2. .2. .2. .1. .0. .1. .0. .1
..2. .3. .0. .0. .0. .0. .2. .1. .3. .1. .1. .2. .2. .1. .1. .0
..1. .0. .3. .2. .1. .3. .2. .3. .1. .0. .3. .0. .1. .3. .1. .0
..3. .1. .3. .0. .2. .1. .3. .3. .3. .1. .1. .2. .1. .1. .2. .0
..2. .3. .0. .0. .0. .0. .2. .2. .3. .1. .3. .2. .0. .2. .3. .1
..2. .3. .0. .3. .2. .0. .0. .1. .3. .3. .3. .0. .3. .3. .1. .0
A269652
Number of length-n 0..4 arrays with no adjacent pair x,x+1 repeated.
Original entry on oeis.org
5, 25, 125, 621, 3065, 15036, 73348, 355921, 1718569, 8259567, 39522507, 188338770, 894017122, 4228223130, 19928007170, 93614937601, 438406639797, 2047055696994, 9531639358730, 44264054228691, 205038988521635, 947492030288164
Offset: 1
Some solutions for n=7
..4. .3. .4. .2. .1. .3. .1. .3. .1. .0. .0. .2. .3. .2. .4. .1
..0. .3. .4. .4. .1. .4. .3. .4. .1. .3. .3. .3. .3. .1. .4. .2
..4. .2. .0. .2. .2. .0. .4. .0. .4. .0. .0. .4. .0. .2. .2. .3
..2. .0. .3. .1. .2. .0. .4. .2. .1. .1. .3. .2. .0. .3. .4. .3
..4. .0. .0. .0. .1. .3. .4. .1. .3. .3. .0. .1. .3. .0. .4. .3
..1. .2. .1. .2. .3. .2. .2. .4. .1. .4. .2. .4. .1. .4. .0. .4
..4. .1. .3. .4. .2. .1. .0. .4. .4. .3. .4. .2. .3. .4. .2. .4
A269653
Number of length-n 0..5 arrays with no adjacent pair x,x+1 repeated.
Original entry on oeis.org
6, 36, 216, 1291, 7686, 45590, 269472, 1587450, 9321628, 54569340, 318513432, 1853885152, 10761305560, 62304937944, 359833051280, 2073213227007, 11917692236634, 68357220234784, 391252708773072, 2234836878469971
Offset: 1
Some solutions for n=6
..0. .1. .3. .4. .4. .2. .5. .4. .2. .1. .3. .5. .4. .4. .1. .5
..3. .5. .3. .3. .3. .0. .1. .4. .0. .3. .4. .1. .4. .0. .4. .1
..3. .2. .4. .2. .0. .4. .4. .0. .5. .3. .0. .2. .2. .3. .0. .4
..0. .5. .3. .0. .2. .1. .4. .4. .0. .2. .2. .1. .5. .5. .2. .0
..1. .2. .5. .5. .3. .1. .4. .1. .5. .2. .5. .4. .0. .3. .1. .4
..4. .5. .2. .4. .4. .0. .4. .1. .5. .5. .3. .1. .2. .3. .5. .1
A269654
Number of length-n 0..6 arrays with no adjacent pair x,x+1 repeated.
Original entry on oeis.org
7, 49, 343, 2395, 16681, 115902, 803434, 5556909, 38350583, 264117327, 1815254345, 12451509292, 85246693192, 582545874403, 3973788262533, 27059842131395, 183956317982661, 1248518868323747, 8460336000063413, 57241697970038501
Offset: 1
Some solutions for n=6
..5. .1. .1. .0. .3. .3. .2. .4. .4. .1. .5. .2. .0. .3. .4. .3
..4. .0. .1. .1. .5. .3. .5. .2. .2. .1. .3. .3. .1. .5. .3. .3
..2. .0. .2. .3. .1. .2. .1. .2. .2. .4. .0. .6. .6. .3. .1. .6
..5. .0. .2. .1. .5. .0. .1. .3. .1. .2. .4. .0. .3. .3. .3. .1
..3. .0. .2. .5. .4. .3. .1. .6. .2. .0. .0. .3. .0. .2. .0. .1
..5. .6. .2. .4. .0. .2. .1. .4. .4. .1. .2. .4. .4. .1. .6. .1
Showing 1-10 of 11 results.
Comments