The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A200947 Sequence A007924 expressed in decimals. 8
 0, 1, 2, 4, 5, 8, 9, 16, 17, 18, 20, 32, 33, 64, 65, 66, 68, 128, 129, 256, 257, 258, 260, 512, 513, 514, 516, 517, 520, 1024, 1025, 2048, 2049, 2050, 2052, 2053, 2056, 4096, 4097, 4098, 4100, 8192, 8193, 16384, 16385, 16386, 16388, 32768, 32769, 32770 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,3 COMMENTS The sequence s(0)=1, and for n>0, s(n)=Prime(n) is complete. A007924 is a set of binary vectors for selecting the largest of either 1 or the primes that when added gives n. This sequence a(n) = decimal(A007924(n)). LINKS Wikipedia, Complete sequence. FORMULA a(n) = decimal(A007924(n)). EXAMPLE 8=7+1, hence A007924(8)=10001, so a(8)=17. MATHEMATICA cprime[n_Integer] := If[n==0, 1, Prime[n]]; gentable[n_Integer] := (m=n; ptable={}; While[m != 0, (i = 0; While[cprime[i] <= m, i++]; j=0; While[j

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.

Last modified June 21 12:58 EDT 2021. Contains 345364 sequences. (Running on oeis4.)