cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A304122 Squarefree numbers of the form 2^k + 5^m, where k is a positive integer and m is a nonnegative integer.

Original entry on oeis.org

3, 5, 7, 13, 17, 21, 29, 33, 37, 41, 57, 65, 69, 89, 127, 129, 133, 141, 157, 253, 257, 281, 381, 517, 537, 627, 629, 633, 641, 689, 753, 881, 1049, 1137, 1149, 1649, 2049, 2053, 2073, 2173, 3127, 3129, 3133, 3157, 3189, 3253, 3637, 4097, 4101, 4121
Offset: 1

Views

Author

Zhi-Wei Sun, May 07 2018

Keywords

Comments

The conjecture in A304081 has the following equivalent version: Any even number greater than 4 can be written as the sum of a prime and a term of the current sequence, and also any odd number greater than 8 can be written as the sum of a prime and twice a term of the current sequence.

Examples

			a(1) = 3 since 3 = 2^1 + 5^0 is squarefree.
a(6) = 21 since 21 = 2^4 + 5^1 = 3*7 is squarefree.
		

Crossrefs

Programs

  • Mathematica
    V={}; Do[If[SquareFreeQ[2^k+5^m],V=Append[V,2^k+5^m]],{k,1,12},{m,0,5}];
    LL:=LL=Sort[DeleteDuplicates[V]];
    a[n_]:=a[n]=LL[[n]];
    Table[a[n],{n,1,50}]