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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A140397 a(n) = floor(3*phi*n) - 3*floor(phi*n) where phi = (1+sqrt(5))/2. 12
1, 0, 2, 1, 0, 2, 0, 2, 1, 0, 2, 1, 0, 1, 0, 2, 1, 0, 2, 1, 2, 1, 0, 2, 1, 0, 2, 0, 2, 1, 0, 2, 1, 0, 1, 0, 2, 1, 0, 2, 1, 2, 1, 0, 2, 1, 0, 1, 0, 2, 1, 0, 2, 1, 2, 1, 0, 2, 1, 0, 2, 0, 2, 1, 0, 2, 1, 0, 1, 0, 2, 1, 0, 2, 1, 2, 1, 0, 2, 1, 0, 2, 0, 2, 1, 0, 2, 1, 0, 1, 0, 2, 1, 0, 2, 0, 2, 1, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,3

LINKS

Table of n, a(n) for n=1..99.

FORMULA

a(n)=floor(n*s^2)-floor(s*floor(n*s)), where s=1+phi.

PROG

(PARI) a(n) = fhi=(1+sqrt(5))/2; floor(3*fhi*n) - 3*floor(fhi*n); \\ Michel Marcus, Aug 26 2013

CROSSREFS

Cf. A140398, A140399, A140400, A140401, A005652, A005653, A078588.

Sequence in context: A231167 A194313 A127476 * A120614 A252055 A097567

Adjacent sequences:  A140394 A140395 A140396 * A140398 A140399 A140400

KEYWORD

nonn

AUTHOR

Fred Lunnon, Jun 20 2008

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 | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy .

Last modified March 28 19:06 EDT 2017. Contains 284246 sequences.