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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A113778 Invert blocks of four in the sequence of natural numbers. 0
4, 3, 2, 1, 8, 7, 6, 5, 12, 11, 10, 9, 16, 15, 14, 13, 20, 19, 18, 17, 24, 23, 22, 21, 28, 27, 26, 25, 32, 31, 30, 29, 36, 35, 34, 33, 40, 39, 38, 37 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

LINKS

Index to sequences with linear recurrences with constant coefficients, signature (1,0,0,1,-1).

FORMULA

a(n)=k*floor((n+k-1)/k)-(n-1) mod k; k=4, n=1, 2, ...

a(n)=n-cos(n*pi)-2*sqrt(2)*cos((2*n+1)*pi/4) [From Jaume Oliver Lafont (joliverlafont(AT)gmail.com), Dec 10 2008]

G.f. x*( 4-x-x^2-x^3+3*x^4 ) / ( (1+x)*(1+x^2)*(x-1)^2 ). - R. J. Mathar, Apr 02 2011

MATHEMATICA

With[{k=4}, Table[k Floor[(n+k-1)/k]-Mod[n-1, k], {n, 1, 10k}]]

CROSSREFS

Cf. A113655.

Sequence in context: A194750 A051623 A194743 * A155172 A129154 A055115

Adjacent sequences:  A113775 A113776 A113777 * A113779 A113780 A113781

KEYWORD

nonn

AUTHOR

Zak Seidov (zakseidov(AT)yahoo.com), Jan 20 2006

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 16 20:14 EST 2012. Contains 205962 sequences.