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!)
A213917 Difference between sum of all even and the sum of all odd numbers in Collatz (3x+1) trajectory of n. 1
-1, 1, 31, 5, 24, 37, 180, 13, 213, 34, 165, 49, 81, 194, 430, 29, 142, 231, 329, 54, 104, 187, 399, 73, 418, 107, 60916, 222, 290, 460, 60716, 61, 535, 176, 352, 267, 353, 367, 1444, 94, 60861, 146, 842, 231, 335, 445, 60653, 121, 526, 468, 722, 159, 281 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
FORMULA
a(n) = A213909(n) - A213916(n).
MATHEMATICA
Collatz[n_] := NestWhileList[If[EvenQ[#], #/2, 3 # + 1] &, n, # > 1 &]; Table[c = Collatz[n]; Total[Select[c, EvenQ]] - Total[Select[c, OddQ]], {n, 100}] (* T. D. Noe, Mar 05 2013 *)
CROSSREFS
Sequence in context: A040944 A040940 A040941 * A191548 A040938 A040939
KEYWORD
sign
AUTHOR
Jayanta Basu, Mar 05 2013
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 16 08:27 EDT 2024. Contains 371698 sequences. (Running on oeis4.)