The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A168143 a(17)=37; for n>=17, a(n)=3n-14 if gcd(n,a(n-1))>1 and all prime divisors of n more than 17; a(n)=a(n-1)+1, otherwise 2

%I #15 Aug 21 2017 19:32:24

%S 37,38,43,44,45,46,55,56,57,58,59,60,61,62,79,80,81,82,83,84,85,86,87,

%T 88,89,90,91,92,93,94,127,128,129,130,131,132,133,134,135,136,137,138,

%U 139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157

%N a(17)=37; for n>=17, a(n)=3n-14 if gcd(n,a(n-1))>1 and all prime divisors of n more than 17; a(n)=a(n-1)+1, otherwise

%C a(n+1)-a(n)+14 is either 15 or a prime > 17. For a generalization, see the second Shevelev link. - Edited by _Robert Israel_, Aug 21 2017

%H Robert Israel, <a href="/A168143/b168143.txt">Table of n, a(n) for n = 17..10000</a>

%H E. S. Rowland, <a href="http://www.cs.uwaterloo.ca/journals/JIS/VOL11/Rowland/rowland21.html">A natural prime-generating recurrence</a>, Journal of Integer Sequences, Vol. 11 (2008), Article 08.2.8.

%H V. Shevelev, <a href="https://arxiv.org/abs/0910.4676">A new generator of primes based on the Rowland idea</a>, arXiv:0910.4676 [math.NT], 2009.

%H V. Shevelev, <a href="https://arxiv.org/abs/0911.3491">Generalizations of the Rowland theorem</a>, arXiv:0911.3491 [math.NT], 2009-2010.

%p A[17]:= 37:

%p q:= convert(select(isprime,[$2..17]),`*`);

%p for n from 18 to 100 do

%p if igcd(n,A[n-1]) > 1 and igcd(n,q) = 1 then A[n]:= 3*n-14

%p else A[n]:= A[n-1]+1 fi

%p od:

%p seq(A[i],i=17..100); # _Robert Israel_, Aug 21 2017

%t nxt[{n_,a_}]:={n+1,If[GCD[n+1,a]>1&&FactorInteger[n+1][[1,1]]>17,3(n+1)-14,a+1]}; NestList[nxt,{17,37},60][[All,2]] (* _Harvey P. Dale_, Aug 15 2017 *)

%Y Cf. A167495, A167494, A167493, A167197, A167195, A167170, A167168, A106108, A132199, A167054, A167053, A166944, A166945, A116533, A163961, A163963, A084662, A084663, A134162, A135506, A135508, A118679, A120293.

%K nonn,uned

%O 17,1

%A _Vladimir Shevelev_, Nov 19 2009

%E Corrected by _Harvey P. Dale_, Aug 15 2017

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 May 20 04:44 EDT 2024. Contains 372703 sequences. (Running on oeis4.)