Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A116997
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A116997 Length of chain starting 2n, iterating f(m) = m - (number of distinct representations of m as the sum of two primes). +0
1
2, 2, 2, 3, 2, 3, 4, 5, 6, 2, 2, 2, 3, 2, 3, 3, 4, 5, 2, 6, 2, 7, 2, 8, 2, 2, 2, 3, 3, 2, 2, 4, 5, 2, 5, 2, 2, 2, 3, 2, 3, 2, 4, 2 (list; graph; listen)
OFFSET

2,1

COMMENT

We start at n=2 as the Goldbach Conjecture is for even integers starting from 4. There is no upper bound for a(n).

FORMULA

a(n) = number of steps k, including start A005843(n) = 2n and end (f^k(n) is odd), where f(2n) = 2n - A045917(n) = 2n - (number of ways of writing 2n as a sum of 2 primes when order does not matter).

EXAMPLE

a(2) = 2 because we have two integers in the chain starting 2*2 = 4, since there is 1 unique way to partition 4 into two primes (4=2+2), so f(4) = 4-1 = 3, which is a halting state, f(3)=3, since 3 is odd and not the sum of two primes. The chain is (4,3).

a(3) = 2, the chain being (6,5) since 6 is uniquely 3+3.

a(5) = 3 because 2*5 = 10 = 3+7 = 5+5 (two ways), 10-2 = 8, then 8 is uniquely 3+5 so the chain is (10,f(10),f(f(10))) = (10,8,7) which is of length 3.

a(10) = 6, the chain being (20,18,16,14,12,11).

a(23) = 7, the chain being (46,42,38,36,32,30,27).

CROSSREFS

Cf. A000040, A005843, A045917.

Sequence in context: A127159 A025128 A058769 this_sequence A050142 A092964 A076709

Adjacent sequences: A116994 A116995 A116996 this_sequence A116998 A116999 A117000

KEYWORD

easy,nonn

AUTHOR

Jonathan Vos Post (jvospost3(AT)gmail.com), Apr 03 2006

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 November 18 20:14 EST 2008. Contains 147244 sequences.


AT&T Labs Research