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!)
A247234 First occurrence of 2n in A035096. 1

%I #34 Jan 28 2015 11:06:31

%S 2,4,7,20,8,17,39,134,45,206,149,49,66,321,88,98,637,382,259,284,820,

%T 302,310,1102,1597,3763,1140,3432,741,532,4751,856,4855,3446,2130,

%U 3256,3407,694,2250,4878,5588,13199,15211,9040,7426,11126,5931,11699,22463,26223,37546,37602,42795,32776

%N First occurrence of 2n in A035096.

%H Robert G. Wilson v, <a href="/A247234/b247234.txt">Table of n, a(n) for n = 1..276</a>

%e a(1) = 2 since the first appearance of 2 occurs at A035096(2);

%e a(3) = 7 since the first appearance of 6 occurs at A035096(7).

%t f[n_] := Block[{p = Prime@ n}, q = 1 + 2p; While[ !PrimeQ@ q, q += 2p]; (q - 1)/p]; f[1] = 1; t = Table[0, {1000}]; k = 2; While[k < 1000000001, a = f@ k /2; If[ t[[a]] == 0, t[[a]] = k; Print[{a, k}]]; k++]]; t

%Y Cf. A035096.

%K nonn

%O 1,1

%A _Robert G. Wilson v_, Dec 28 2014

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 March 28 20:05 EDT 2024. Contains 371254 sequences. (Running on oeis4.)