login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A203072 First row of A203071. 2

%I

%S 1,8,4,14,6,10,22,27,15,35,40,88,28,26,44,60,57,58,64,120,62,72,34,56,

%T 80,63,98,46,102,178,52,100,66,156,86,82,110,76,114,94,140,96,154,130,

%U 160,112,108,138,78,150,118,146,132,126,162,176,164,188,202,200,180

%N First row of A203071.

%H Lars Blomberg, <a href="/A203072/b203072.txt">Table of n, a(n) for n = 1..1000</a>

%o (PARI) extend_first_row( a=[], u=[] )={ u || for( i=1,#a, u=setunion(u,Set(a[i]));

%o forstep( j=i-1,1,-1, u=setunion(u, Set(a[j]+=a[j+1]))));

%o for( t=1,9e9, isprime(t) && next; setsearch(u,t) && next; my(tt=t);

%o forstep( j=#a,1,-1, setsearch(u, tt += a[j]) && next(2); isprime(tt) && next(2)); return(t)) }

%o a=[];for(i=1,100,print(a=concat(a,extend_first_row(a))))

%K nonn

%O 1,2

%A _M. F. Hasler_, Dec 28 2011

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 12:04 EDT 2019. Contains 322456 sequences. (Running on oeis4.)