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!)
A073925 Powers of 2 rearranged such that every partial sum (n>1) is composite. 2
1, 8, 16, 2, 64, 4, 256, 1024, 32, 128, 512, 2048, 8192, 4096, 16384, 32768, 131072, 65536, 2097152, 262144, 524288, 1048576, 4194304, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 2147483648, 1073741824 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
a(2)=8 because 1+2=3, 1+4=5 are primes and 1+8=9 is composite.
MAPLE
N:= 100: # for terms before the first > 2^N
Cands:= [seq(2^i, i=0..N)]:
Res:= NULL: s:= 0: nC:= N+1:
found:= true;
while found do
found:= false;
for i from 1 to nC do
if not isprime(s+Cands[i]) then
Res:= Res, Cands[i];
s:= s + Cands[i];
Cands:= subsop(i=NULL, Cands);
nC:= nC-1;
found:= true;
break
fi
od
od:
Res; # Robert Israel, Apr 05 2020
CROSSREFS
Sequence in context: A061746 A028585 A073926 * A053321 A335772 A299214
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Aug 19 2002
EXTENSIONS
More terms from Sascha Kurz, Feb 01 2003
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 25 11:24 EDT 2024. Contains 371967 sequences. (Running on oeis4.)