login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A076092 a(n) = n - 2*Sum_{i=1..n} b(i) (see comment for definition of b(i)). 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; refs; listen; history; text; internal format)
OFFSET
1,6
COMMENTS
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
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.
PROG
(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).
Sequence in context: A293439 A144095 A362719 * A080468 A321863 A294599
KEYWORD
sign,look
AUTHOR
Benoit Cloitre, Nov 01 2002
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 18 18:49 EDT 2024. Contains 371781 sequences. (Running on oeis4.)