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.

Showing 1-3 of 3 results.

A304721 Numbers m with A304720(m) = 1.

Original entry on oeis.org

2, 3, 5, 7, 9, 10, 11, 12, 13, 19, 21, 23, 26, 28, 30, 39, 41, 46, 50, 51, 53, 55, 57, 59, 77, 89, 93, 101, 113, 129, 149, 151, 153, 161, 165, 178, 185, 189, 201, 221, 237, 245, 246, 297, 364, 377, 489, 553, 581, 639
Offset: 1

Views

Author

Zhi-Wei Sun, May 17 2018

Keywords

Comments

Conjecture: The sequence only has 112 terms as listed in the b-file.
We have verified that there is no new term below 2*10^9.

Examples

			a(9) = 13 since 13 - (4^1 - 1) = 2*5 is squarefree,  13 - (4^0 - 0) = 2^2*3 is not squarefree, and 13 - (4^k -k ) < 0 for any integer k > 1.
		

Crossrefs

Programs

  • Mathematica
    f[n_]:=f[n]=4^n-n;
    tab={};Do[r=0;k=0;Label[bb];If[f[k]>=m,Goto[aa]];If[SquareFreeQ[m-f[k]],r=r+1];If[r>1,Goto[cc]];k=k+1;Goto[bb];Label[aa];If[r==1,tab=Append[tab,m]];Label[cc],{m,1,640}];Print[tab]

A304943 Number of ways to write n as the sum of a positive tribonacci number (A000073) and a positive odd squarefree number.

Original entry on oeis.org

0, 1, 1, 1, 2, 1, 2, 2, 2, 1, 1, 2, 1, 3, 2, 2, 2, 3, 2, 3, 2, 2, 2, 3, 3, 2, 2, 2, 1, 3, 2, 2, 2, 2, 3, 3, 3, 2, 3, 2, 3, 3, 3, 3, 4, 2, 3, 3, 2, 2, 2, 2, 2, 3, 4, 2, 4, 2, 4, 3, 4, 2, 4, 2, 3, 3, 3, 3, 2, 2, 3, 3, 3, 3, 4, 1, 3, 3, 3, 3, 4, 2, 3, 4, 3, 4, 3, 2, 3, 3, 4, 4, 3, 3, 4, 4, 4, 4, 3, 3
Offset: 1

Views

Author

Zhi-Wei Sun, May 22 2018

Keywords

Comments

Conjecture: a(n) > 0 for all n > 1, and a(n) = 1 only for n = 2, 3, 4, 6, 10, 11, 13, 29, 76, 1332, 25249.

Examples

			a(2) = 1 with 2 = 1 + 1, where 1 = A000073(2) = A000073(3) is a positive tribonacci number, and 1 is also odd and squarefree.
a(29) = 1 since 29 = A000073(8) + 5 with 5 odd and squarefree.
a(76) = 1 since 76 = A000073(6) + 3*23 with 3*23 odd and squarefree.
a(1332) = 1 since 1332 = A000073(7) + 1319 with 1319 odd and squarefree.
a(25249) = 1 since 25249 = A000073(4) + 25247 with 25247 odd and squarefree.
		

Crossrefs

Programs

  • Mathematica
    f[0]=0;f[1]=0;f[2]=1;
    f[n_]:=f[n]=f[n-1]+f[n-2]+f[n-3];
    QQ[n_]:=QQ[n]=Mod[n,2]==1&&SquareFreeQ[n];
    tab={};Do[r=0;k=3;Label[bb];If[f[k]>=n,Goto[aa]];If[QQ[n-f[k]],r=r+1];k=k+1;Goto[bb];Label[aa];tab=Append[tab,r],{n,1,100}];Print[tab]

A304945 Number of nonnegative integers k such that n - k*L(k) is positive and squarefree, where L(k) denotes the k-th Lucas number A000032(k).

Original entry on oeis.org

1, 2, 2, 1, 1, 2, 3, 2, 1, 1, 3, 2, 3, 3, 3, 2, 3, 2, 3, 2, 2, 3, 4, 1, 2, 2, 3, 1, 4, 3, 4, 2, 3, 4, 5, 2, 2, 4, 4, 2, 4, 4, 5, 2, 3, 2, 5, 2, 3, 2, 3, 2, 3, 3, 2, 2, 4, 5, 5, 2, 4, 4, 4, 1, 5, 4, 5, 3, 4, 5, 5, 3, 3, 5, 3, 2, 4, 4, 5, 2, 3, 2, 5, 3, 5, 5, 3, 3, 5, 4, 3, 3, 4, 5, 5, 2, 5, 4, 3, 1
Offset: 1

Views

Author

Zhi-Wei Sun, May 22 2018

Keywords

Comments

Conjecture: a(n) > 0 for all n > 0, and a(n) = 1 only for n = 1, 4, 5, 9, 10, 24, 28, 64, 100, 104, 136, 153, 172, 176, 344, 496, 856, 928, 1036, 1084, 1216, 1860.

Examples

			 a(1) = 1 since 1 = 0*L(0) + 1 with 1 squarefree.
a(10) = 1 since 10 = 0*L(0) + 2*5 with 2*5 squarefree.
a(136) = 1 since 136 = 2*L(2) + 2*5*13 with 2*5*13 squarefree.
a(344) = 1 since 344 = 7*L(7) + 3*47 with 3*47 squarefree.
a(1036) = 1 since 1036 = 2*L(2) + 2*5*103 with 2*5*103 squarefree.
a(1860) = 1 since 1860 = 7*L(7) + 1657 with 1657 squarefree.
		

Crossrefs

Programs

  • Mathematica
    f[n_]:=f[n]=n*LucasL[n];
    QQ[n_]:=QQ[n]=SquareFreeQ[n];
    tab={};Do[r=0;k=0;Label[bb];If[f[k]>=n,Goto[aa]];If[QQ[n-f[k]],r=r+1];k=k+1;Goto[bb];Label[aa];tab=Append[tab,r],{n,1,100}];Print[tab]
Showing 1-3 of 3 results.