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!)
A172020 Number of subsets S of {1,2,3,...,n} with the property that if x is a member of S then at least one of x-2 and x+2 is also a member of S. 2
1, 1, 2, 4, 8, 16, 28, 49, 84, 144, 252, 441, 777, 1369, 2405, 4225, 7410, 12996, 22800, 40000, 70200, 123201, 216216, 379456, 665896, 1168561, 2050657, 3598609, 6315113, 11082241, 19448018, 34128964, 59892184, 105103504, 184443732, 323676081, 568011852 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
COMMENTS
It is interesting that, for k > 0, it appears that a(2k) is the square of A005251(k+2). (This has since been proved by Andrew Weimholt; see link.)
If we denote by d2 the second difference of {a(n)}, it appears that d2(2k) is the square of A005314(k).
LINKS
Proof by Andrew Weimholt, SeqFan Jan 2010
FORMULA
Andrew Weimholt has shown that a(2*n) = A005251(n+2) ^ 2, and a(2*n+1) = A005251(n+2) * A005251(n+3). (See the link.)
G.f.: x*(1 - x + x^3 + 2*x^4 - x^8) / ((1 - 2*x + x^2 - x^3)*(1 + x - x^3)*(1 - x + x^3)). - Colin Barker, Feb 15 2016
MATHEMATICA
LinearRecurrence[{2, 0, -1, -1, 3, -1, 0, 1, -1}, {1, 1, 2, 4, 8, 16, 28, 49, 84}, 32] (* Jean-François Alcover, Feb 15 2016 *)
PROG
(PARI) Vec(x*(1-x+x^3+2*x^4-x^8)/((1-2*x+x^2-x^3)*(1+x-x^3)*(1-x+x^3)) + O(x^50)) \\ Colin Barker, Feb 15 2016
CROSSREFS
Sequence in context: A112128 A208933 A227036 * A209410 A228733 A318767
KEYWORD
nonn,easy
AUTHOR
John W. Layman, Jan 22 2010
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 24 19:06 EDT 2024. Contains 371962 sequences. (Running on oeis4.)