login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A263694 Expansion of (1 + x + x^2 + x^3 + 4*x^4 - x^5 - x^6 - x^7 + 3*x^8)/((1 - x)^2*(1 + x + x^2 + x^3 + x^4 + x^5 + x^6 + x^7)). 0
1, 2, 3, 4, 8, 7, 6, 5, 9, 10, 11, 12, 16, 15, 14, 13, 17, 18, 19, 20, 24, 23, 22, 21, 25, 26, 27, 28, 32, 31, 30, 29, 33, 34, 35, 36, 40, 39, 38, 37, 41, 42, 43, 44, 48, 47, 46, 45, 49, 50, 51, 52, 56, 55, 54, 53, 57, 58, 59, 60, 64, 63, 62, 61, 65, 66, 67, 68, 72, 71, 70, 69, 73, 74, 75 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,2

COMMENTS

In each group of 8 consecutive numbers, swap 5 and 8 terms, 6 and 7 terms.

LINKS

Table of n, a(n) for n=0..74.

Index entries for sequences that are permutations of the natural numbers

Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,0,0,0,1,-1).

FORMULA

G.f.: (1 + x + x^2 + x^3 + 4*x^4 - x^5 - x^6 - x^7 + 3*x^8)/((1 - x)^2*(1 + x + x^2 + x^3 + x^4 + x^5 + x^6 + x^7)).

a(n) = a(n-1) + a(n-8) - a(n-9).

a(n) = 1 + n + 3*floor(n/4) - 2*floor((n+1)/8) - 2*floor((n+2)/8) - 2*floor((n+3)/8). - Vaclav Kotesovec, Apr 19 2016

MATHEMATICA

CoefficientList[Series[(1 + x + x^2 + x^3 + 4 x^4 - x^5 - x^6 - x^7 + 3 x^8)/((1 - x)^2 (1 + x + x^2 + x^3 + x^4 + x^5 + x^6 + x^7)), {x, 0, 75}], x]

LinearRecurrence[{1, 0, 0, 0, 0, 0, 0, 1, -1}, {1, 2, 3, 4, 8, 7, 6, 5, 9}, 75]

PROG

(PARI) x='x+O('x^99); Vec((1+x+x^2+x^3+4*x^4-x^5-x^6-x^7+3*x^8)/((1-x)^2*(1+x+x^2+x^3 +x^4+x^5+x^6+x^7))) \\ Altug Alkan, Apr 18 2016

CROSSREFS

Cf. A000027, A133256, A133259.

Sequence in context: A223540 A300868 A176077 * A210743 A210750 A036712

Adjacent sequences:  A263691 A263692 A263693 * A263695 A263696 A263697

KEYWORD

nonn,easy

AUTHOR

Ilya Gutkovskiy, Apr 17 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 18 17:13 EDT 2019. Contains 328186 sequences. (Running on oeis4.)