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!)
A007879 Chimes made by clock striking the hour and half-hour. 6
1, 1, 1, 2, 1, 3, 1, 4, 1, 5, 1, 6, 1, 7, 1, 8, 1, 9, 1, 10, 1, 11, 1, 12, 1, 1, 1, 2, 1, 3, 1, 4, 1, 5, 1, 6, 1, 7, 1, 8, 1, 9, 1, 10, 1, 11, 1, 12, 1, 1, 1, 2, 1, 3, 1, 4, 1, 5, 1, 6, 1, 7, 1, 8, 1, 9, 1, 10, 1, 11, 1, 12 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,4

COMMENTS

Periodic sequence with period 24. - Michel Marcus, Jul 17 2013

LINKS

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

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

FORMULA

From Hieronymus Fischer, Sep 25 2007: (Start)

G.f.: 1/(1-x^2)+x(12x^26-13x^24+1)/((1-x^24)(1-x^2)^2).

G.f.: (1+x-x^2-x^24-13x^25+x^26+12x^27)/((1-x^24)(1-x^2)^2).

a(n) = 1 + ((n-1)*(1-(-1)^n)/4) mod 12.

a(n) = 1 + ((n-1)*(n mod 2)/2) mod 12. (End)

MATHEMATICA

CoefficientList[Series[(1+x-x^2-x^24-13x^25+x^26+12x^27)/((1-x^24)(1-x^2)^2), {x, 0, 71}], x] (* Stefano Spezia, Mar 27 2022 *)

PROG

(PARI) a(n)= 1 + ((n-1)*(1-(-1)^n)/4) % 12 \\ Michel Marcus, Jul 17 2013

CROSSREFS

Cf. A010881, A057979.

Sequence in context: A322315 A319338 A177815 * A057979 A152271 A133622

Adjacent sequences:  A007876 A007877 A007878 * A007880 A007881 A007882

KEYWORD

nonn,easy

AUTHOR

Jan Wolitzky

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 September 27 19:37 EDT 2022. Contains 357063 sequences. (Running on oeis4.)