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.

A057895 Nonnegative numbers which can be written as m^k-m [with m and k nonnegative and 0^0 taken as 1].

Original entry on oeis.org

0, 1, 2, 6, 12, 14, 20, 24, 30, 42, 56, 60, 62, 72, 78, 90, 110, 120, 126, 132, 156, 182, 210, 240, 252, 254, 272, 306, 336, 342, 380, 420, 462, 504, 506, 510, 552, 600, 620, 650, 702, 720, 726, 756, 812, 870, 930, 990, 992, 1020, 1022, 1056, 1122, 1190, 1260
Offset: 0

Views

Author

Henry Bottomley, Sep 26 2000

Keywords

Examples

			a(8)=30 is in the sequence since 30=2^6-2 (and also =6^2-6).
		

Crossrefs

Programs

  • Maple
    N:= 1000: # to get all entries up to N
    S:= {0,1}:
    for m from 2 to floor((1+sqrt(1+4*N))/2) do
         S:= S union {seq(m^k - m,k=2 .. floor(log(N+m)/log(m)))}
    end do:
    S; # Robert Israel, Feb 12 2013