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.

A290728 Analog of A084848, replacing "quadratic residue" (X^2) with "value of X^2+X".

Original entry on oeis.org

1, 1, 2, 3, 4, 4, 6, 8, 12, 12, 12, 16, 24, 24, 36, 42, 44, 48, 72, 84, 96, 112, 144, 144, 168, 176, 264, 308, 288, 336, 432, 480, 504, 648, 672, 864, 960, 1008, 1008, 1056, 1232, 1584, 1760, 1848, 2376, 2016, 2592
Offset: 1

Views

Author

N. J. A. Sloane, Aug 10 2017

Keywords

Crossrefs

Programs

  • Mathematica
    a290731[n_] := Product[{p, e} = pe; If[p==2, 2^(e-1), 1 + Quotient[p^(e+1), (2p + 2)]], {pe, FactorInteger[n]}];
    Reap[For[r = 2; k = 1, k <= 200000, k++, v = a290731[k]; t = v/k; If[t < r, r = t; Sow[v]]]][[2, 1]] (* Jean-François Alcover, Sep 13 2018, from PARI *)
  • PARI
    a290731(n)={my(f=factor(n));prod(i=1,#f~,my([p,e]=f[i,]);if(p==2,2^(e-1),1+p^(e+1)\(2*p+2)))} \\ from Andrew Howroyd
    r=2;for(k=1,200000,v=a290731(k);t=v/k;if(tHugo Pfoertner, Aug 23 2018

Formula

a(n) = A290731(A290727(n)) - Hugo Pfoertner, Aug 23 2018

Extensions

More terms from Hugo Pfoertner, Aug 22 2018
Initial term added by Hugo Pfoertner, Aug 23 2018