[seqfan] Re: Seq. needed: linear comb. of primes

Heinz, Alois alois.heinz at hs-heilbronn.de
Mon Aug 6 00:55:39 CEST 2012


Am 05.08.2012 22:17, schrieb Neil Sloane:
> Dear Seqfans,
> take the first n primes and combine them with coefficients +1 and -1;
> a(n) is the smallest number (in absolute value) that can be obtained.
> I get by hand (for n>=1)
> 2 1 0 1 0 1 0 1 0 1 0 1
> How does it continue? Does 1,0 repeat for ever?

The answer is "yes", see A022894 and A113040:

https://oeis.org/search?q=id%3AA022894|id%3AA113040

Alois




More information about the SeqFan mailing list