Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A084351
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A084351 Length of period of sequences r(k,n)=floor(sin(1)*k!)-n*floor(sin(1)*k!/n) when n is fixed. +0
3
1, 4, 12, 4, 20, 12, 28, 8, 36, 20, 44, 12, 52, 28, 60, 16, 68, 36, 76, 20, 84, 44, 92, 24, 100, 52, 108, 28, 116, 60, 124, 32, 132, 68, 140, 36, 148, 76, 156, 40, 164, 84, 172, 44, 180, 92, 188, 48, 196, 100, 204, 52, 212, 108, 220, 56, 228, 116, 236, 60, 244, 124, 252 (list; graph; listen)
OFFSET

1,2

FORMULA

For n>1 a(n)=n if n==0 (mod 4), a(n)=2n is n==0 (mod 2) and n is not divisible by 4, a(n)=4n if n is odd.

PROGRAM

(PARI) a(n)=if(n<2, 1, if(n%2-1, if(n%4, 2*n, n), 4*n))

CROSSREFS

Cf. A084348.

Sequence in context: A016487 A104063 A010296 this_sequence A133517 A145046 A084415

Adjacent sequences: A084348 A084349 A084350 this_sequence A084352 A084353 A084354

KEYWORD

nonn

AUTHOR

Benoit Cloitre (benoit7848c(AT)orange.fr), Jun 22 2003

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 December 7 08:40 EST 2009. Contains 170430 sequences.


AT&T Labs Research