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.

A338495 Least number of hexagonal pyramidal numbers needed to represent n.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6, 7, 2, 3, 4, 5, 6, 7, 8, 3, 1, 2, 3, 4, 5, 6, 4, 2, 3, 4, 5, 6, 7, 5, 3, 4, 5, 6, 7, 8, 6, 4, 2, 3, 4, 5, 6, 7, 1, 2, 3, 4, 5, 6, 7, 2, 3, 4, 5, 6, 7, 8, 3, 4, 3, 4, 5, 6, 7, 4, 2, 3, 4, 5, 6, 7, 5, 3, 4, 5, 6, 7, 8, 6, 4, 5, 4, 5, 6, 7, 7, 5, 3, 1, 2, 3, 4, 5, 2, 3
Offset: 1

Views

Author

Ilya Gutkovskiy, Oct 30 2020

Keywords

Crossrefs

Programs

  • Maple
    N:= 200: # for a(1)..a(N)
    V:= Vector(N):
    S:= {seq(n*(n+1)*(4*n-1)/6,n=1..floor((N*3/2)^(1/3)))}:
    V[convert(S,list)]:= 1:
    T:= S:
    for m from 2 do
      Tn:= select(`<=`,map(t -> op(t +~ S),T),N) minus T;
      if nops(Tn) = 0 then break fi;
      T:= T union Tn;
      V[convert(Tn,list)]:= m
    od:
    convert(V,list); # Robert Israel, Nov 02 2020

A338480 Least number of heptagonal numbers needed to represent n.

Original entry on oeis.org

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

Views

Author

Ilya Gutkovskiy, Oct 29 2020

Keywords

Crossrefs

A338481 Least number of octagonal numbers needed to represent n.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 7, 1, 2, 3, 4, 5, 6, 7, 8, 2, 3, 4, 5, 6, 1, 2, 3, 3, 4, 5, 6, 7, 2, 3, 4, 4, 5, 6, 7, 8, 3, 4, 5, 1, 2, 2, 3, 4, 4, 5, 6, 2, 3, 3, 4, 5, 5, 6, 7, 3, 4, 4, 5, 6, 2, 3, 3, 4, 1, 2, 3, 4, 3, 4, 4, 5, 2, 3, 4, 5, 4, 5, 5, 2, 3, 3, 4, 4, 5, 2, 3, 3, 4, 4, 5, 5, 6, 3, 4, 1, 2, 3, 4, 5, 3
Offset: 1

Views

Author

Ilya Gutkovskiy, Oct 29 2020

Keywords

Crossrefs

Showing 1-3 of 3 results.