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.

A122987 Possible last three digits of n^3 (leading zeros omitted).

This page as a plain text file.
%I A122987 #16 Feb 16 2025 08:33:02
%S A122987 0,1,3,7,8,9,11,13,16,17,19,21,23,24,27,29,31,32,33,37,39,41,43,47,48,
%T A122987 49,51,53,56,57,59,61,63,64,67,69,71,72,73,77,79,81,83,87,88,89,91,93,
%U A122987 96,97,99,101,103,104,107,109,111,112,113,117,119
%N A122987 Possible last three digits of n^3 (leading zeros omitted).
%C A122987 This is a finite sequence. a(505) = 999 is the last term.
%H A122987 Nathaniel Johnston, <a href="/A122987/b122987.txt">Table of n, a(n) for n = 1..505</a> (full sequence)
%H A122987 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/CubicNumber.html">Cubic Numbers</a>.
%e A122987 The last three digits of n^3 can be 111, 112, 113, etc. but not 114, 115, 116, etc.
%p A122987 s:={}: for n from 0 to 999 do s:=s union {n^3 mod 1000}: od: op(s); # _Nathaniel Johnston_, Jun 22 2011
%t A122987 Union[Mod[Range[1000]^3,1000]] (* _James C. McMahon_, Nov 14 2024 *)
%Y A122987 Cf. A000578, A122986, A122988.
%K A122987 base,fini,full,easy,nonn
%O A122987 1,3
%A A122987 _Sergio Pimentel_, Sep 22 2006