login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A269531 Number of length-n 0..2 arrays with no repeated value differing from the previous repeated value by other than one. 1
3, 9, 24, 64, 164, 418, 1048, 2614, 6468, 15942, 39120, 95734, 233660, 569230, 1384408, 3362686, 8158932, 19778982, 47913504, 115999462, 280698860, 678970558, 1641785704, 3968834446, 9592037508, 23178077334, 55998523824, 135275792374 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
FORMULA
Empirical: a(n) = 4*a(n-1) - a(n-2) - 10*a(n-3) + 6*a(n-4) + 4*a(n-5).
Empirical g.f.: x*(3 - 3*x - 9*x^2 + 7*x^3 + 4*x^4) / ((1 - 2*x)*(1 - 2*x - x^2)*(1 - 2*x^2)). - Colin Barker, Jan 23 2019
EXAMPLE
Some solutions for n=9:
..1. .0. .0. .0. .1. .0. .2. .0. .1. .0. .0. .2. .0. .0. .0. .1
..0. .1. .2. .2. .1. .2. .1. .2. .0. .1. .0. .0. .1. .2. .2. .1
..1. .2. .0. .0. .0. .0. .2. .0. .1. .0. .2. .0. .2. .0. .0. .2
..1. .0. .2. .2. .2. .2. .0. .1. .0. .1. .1. .1. .1. .0. .1. .1
..0. .0. .2. .1. .1. .2. .0. .0. .0. .0. .1. .2. .0. .2. .1. .0
..0. .1. .0. .2. .2. .1. .2. .1. .2. .2. .0. .1. .1. .0. .0. .2
..2. .1. .2. .1. .0. .2. .1. .0. .1. .0. .2. .0. .2. .2. .1. .1
..1. .0. .1. .0. .2. .1. .1. .1. .0. .1. .2. .2. .0. .0. .0. .0
..0. .1. .0. .1. .1. .2. .0. .0. .1. .2. .0. .1. .1. .1. .1. .1
CROSSREFS
Column 2 of A269537.
Sequence in context: A166290 A097134 A123892 * A064831 A153582 A269461
KEYWORD
nonn
AUTHOR
R. H. Hardin, Feb 29 2016
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 16 13:33 EDT 2024. Contains 371712 sequences. (Running on oeis4.)