Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A076092
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A076092 a(n)=n-2*sum(i=1,n,b(i)) (see comment for definition of b(i)). +0
2
1, 0, -1, 0, 1, 2, 1, 0, -1, -2, -1, -2, -3, -2, -1, 0, -1, 0, 1, 2, 3, 2, 1, 2, 3, 4, 5, 4, 3, 2, 1, 0, 1, 2, 3, 2, 1, 0, -1, -2, -3, -4, -3, -2, -1, 0, 1, 0, -1, -2, -3, -4, -5, -6, -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 1, 0, -1, -2, -3, -4, -5, -4, -5, -4, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 4, 3, 2, 1, 0, -1, -2, -3, -4, -5, -4, -5, -4, -3 (list; graph; listen)
OFFSET

1,6

COMMENT

Recall the modified Collatz map : x->x/2 if x is even; x->(3x+1)/2 if x is odd. Let C_m(n) denotes the image of n after m iterations. Then b(n)= (lim k ->infinity C_2k(n))-1 (from the Collatz conjecture C_2k(n) is constant = 1 or 2 for k sufficiently large).

Curiously the graph of a(n) has "regularities" around 0 and a pattern that becomes larger and larger when compared with a random sequence of the form n-2*sum(k=1,n,r(k)) where r(k) takes random values from (0;1).

LINKS

Paul Hanna, Graph of a(n) for n=1 up to 12000 .

EXAMPLE

b(12)=1 since, starting with 12 the Collatz map gives : 12->6->3->5->8->4->2->1, then C_6(12)=2 and then b(12) = C_6(12)-1 = 1

PROGRAM

(PARI) a(n)=n-2*sum(i=1, n, if(i<0, 0, s=i; c=0; while(s>1, s=(s%2)*(3*s+1)/2+(1-s%2)*s/2; c++); c)%2)

CROSSREFS

Cf. A076182 (b(n) sequence).

Adjacent sequences: A076089 A076090 A076091 this_sequence A076093 A076094 A076095

Sequence in context: A029359 A038698 A087991 this_sequence A080468 A080940 A080941

KEYWORD

sign

AUTHOR

Benoit Cloitre (benoit7848c(AT)orange.fr), Nov 01 2002

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 13 20:18 EDT 2008. Contains 145016 sequences.


AT&T Labs Research