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.

A303541 Numbers of the form k^2 + binomial(2*m,m) with k and m nonnegative integers.

Original entry on oeis.org

1, 2, 3, 5, 6, 7, 10, 11, 15, 17, 18, 20, 21, 22, 24, 26, 27, 29, 31, 36, 37, 38, 42, 45, 50, 51, 55, 56, 65, 66, 69, 70, 71, 74, 79, 82, 83, 84, 86, 87, 95, 101, 102, 106, 119, 120, 122, 123, 127, 134
Offset: 1

Views

Author

Zhi-Wei Sun, Apr 25 2018

Keywords

Comments

The conjecture in A303540 has the following equivalent version: Each integer n > 1 can be written as the sum of two terms of the current sequence.
This has been verified for all n = 2..10^10.

Examples

			a(1) = 1 with 0^2 + binomial(2*0,0) = 1.
a(7) = 10 with 2^2 + binomial(2*2,2) = 10.
a(8) = 11 with 3^2 + binomial(2*1,1) = 11.
		

Crossrefs

Programs

  • Mathematica
    c[n_]:=c[n]=Binomial[2n,n];
    SQ[n_]:=SQ[n]=IntegerQ[Sqrt[n]];
    tab={};n=0;Do[k=0;Label[bb];If[c[k]>m,Goto[aa]];If[SQ[m-c[k]],n=n+1;tab=Append[tab,m];Goto[aa],k=k+1;Goto[bb]];Label[aa],{m,1,134}];Print[tab]