Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A102899
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A102899 Ceiling(n/3)^2-floor(n/3)^2. +0
2
0, 1, 1, 0, 3, 3, 0, 5, 5, 0, 7, 7, 0, 9, 9, 0, 11, 11, 0, 13, 13, 0, 15, 15, 0, 17, 17, 0, 19, 19, 0, 21, 21, 0, 23, 23, 0, 25, 25, 0, 27, 27, 0, 29, 29, 0, 31, 31, 0, 33, 33, 0, 35, 35, 0, 37, 37, 0, 39, 39, 0, 41, 41, 0, 43, 43, 0, 45, 45, 0, 47, 47, 0, 49, 49, 0, 51, 51, 0, 53, 53, 0 (list; graph; listen)
OFFSET

0,5

FORMULA

G.f.: x(1+x+x^3+x^4)/(1-2x^3+x^6); a(n)=A011655(n)*A004396(n)=floor((2n+1)/3)*(2/3)*(1-cos(2Pi*n/3)).

a(n)=|A120691(n+1)| for n>0 ; a(n)=([n/3]*2+1)*dist(n,3Z). - M. F. Hasler (maximilian.hasler(AT)gmail.com), Dec 13 2007

PROGRAM

(PARI) A102899(n)=(n\3*2+1)*(0<n%3) - M. F. Hasler (maximilian.hasler(AT)gmail.com), Dec 13 2007

CROSSREFS

Cf. A120691, A003417.

Adjacent sequences: A102896 A102897 A102898 this_sequence A102900 A102901 A102902

Sequence in context: A116580 A096439 A128046 this_sequence A072689 A021972 A117234

KEYWORD

easy,nonn

AUTHOR

Paul Barry (pbarry(AT)wit.ie), Jan 17 2005

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified October 6 12:54 EDT 2008. Contains 144667 sequences.


AT&T Labs Research