login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A268938 Number of length-n 0..2 arrays with no repeated value unequal to the previous repeated value plus one mod 2+1. 2
3, 9, 24, 63, 159, 396, 969, 2349, 5640, 13455, 31911, 75348, 177225, 415557, 971808, 2267631, 5281359, 12280860, 28518153, 66147165, 153274488, 354861711, 820976631, 1898144676, 4386240393, 10131006069, 23390390544, 53984735343 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

Column 2 of A268944.

LINKS

R. H. Hardin, Table of n, a(n) for n = 1..210

FORMULA

Empirical: a(n) = 3*a(n-1) + a(n-2) - 6*a(n-3).

Empirical g.f.: 3*x*(1 - 2*x^2) / ((1 - 2*x)*(1 - x - 3*x^2)). - Colin Barker, Mar 21 2018

EXAMPLE

Some solutions for n=9:

..0. .1. .2. .2. .2. .1. .2. .2. .0. .2. .1. .0. .0. .0. .0. .1

..0. .2. .0. .1. .1. .0. .0. .0. .1. .1. .2. .2. .2. .2. .2. .0

..2. .0. .2. .2. .2. .1. .1. .1. .0. .0. .1. .1. .0. .0. .0. .0

..1. .2. .2. .0. .0. .0. .2. .1. .1. .0. .0. .2. .1. .0. .2. .2

..0. .0. .0. .2. .0. .1. .0. .2. .0. .1. .0. .1. .0. .2. .0. .1

..1. .2. .2. .2. .2. .1. .2. .1. .1. .1. .2. .0. .0. .0. .0. .1

..0. .1. .0. .0. .0. .0. .1. .0. .2. .0. .0. .1. .1. .1. .2. .2

..1. .0. .0. .2. .2. .2. .1. .2. .1. .2. .1. .2. .1. .1. .1. .2

..2. .2. .2. .1. .1. .0. .0. .2. .2. .1. .0. .1. .0. .2. .2. .1

CROSSREFS

Cf. A268944.

Sequence in context: A018788 A098690 A267960 * A090400 A123888 A166290

Adjacent sequences:  A268935 A268936 A268937 * A268939 A268940 A268941

KEYWORD

nonn

AUTHOR

R. H. Hardin, Feb 16 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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified October 26 00:52 EDT 2021. Contains 348256 sequences. (Running on oeis4.)