Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A079878
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A079878 a(1)=1, then a(n)=2*a(n-1) if 2*a(n-1)<=n, a(n)=2*a(n-1)-n otherwise. +0
1
1, 2, 1, 2, 4, 2, 4, 8, 7, 4, 8, 4, 8, 2, 4, 8, 16, 14, 9, 18, 15, 8, 16, 8, 16, 6, 12, 24, 19, 8, 16, 32, 31, 28, 21, 6, 12, 24, 9, 18, 36, 30, 17, 34, 23, 46, 45, 42, 35, 20, 40, 28, 3, 6, 12, 24, 48, 38, 17, 34, 7, 14, 28, 56, 47, 28, 56, 44, 19, 38, 5, 10, 20, 40, 5, 10, 20, 40, 1, 2 (list; graph; listen)
OFFSET

1,2

COMMENT

For n=1, 2, 8, 32, 46, 392, 12230, .... we have a(n)=n. For n=1, 3, 79, 235, 431, 1503, 2943, 6059, 6619, ... we have a(n)=1. Memo: these should be submitted as separate sequences. - njas

FORMULA

It seems that sum(k=1, n, a(k))/n^2 ->1/4

PROGRAM

(PARI) a=1; for(n=2, 100, b=if(sign(2*a-n)-1, 2*a, 2*a-n); a=b; print1(b, ", "))

CROSSREFS

A064434(n) + 1.

Adjacent sequences: A079875 A079876 A079877 this_sequence A079879 A079880 A079881

Sequence in context: A099500 A120253 A060547 this_sequence A137406 A120855 A091173

KEYWORD

nonn

AUTHOR

Benoit Cloitre (benoit7848c(AT)orange.fr), Feb 20 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 October 11 09:12 EDT 2008. Contains 144832 sequences.


AT&T Labs Research