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.

A062841 Palindromes of the form k^3-1.

This page as a plain text file.
%I A062841 #23 Oct 08 2023 15:34:28
%S A062841 0,7,999,999999,258474852,999999999,999999999999,999999999999999,
%T A062841 999999999999999999,999999999999999999999,999999999999999999999999,
%U A062841 999999999999999999999999999,999999999999999999999999999999,999999999999999999999999999999999
%N A062841 Palindromes of the form k^3-1.
%C A062841 Sequence is infinite as (10^k)^3-1 is a term for all k >= 0. - _Michael S. Branicky_, Mar 27 2021
%e A062841 999 = 10^3-1 and is a palindrome.
%t A062841 For[n=0,n<100000000,n++,If[n^3-1==IntegerReverse[n^3-1],Print[n^3-1]]] (* _Dylan Delgado_, Mar 02 2021 *)
%t A062841 Select[Range[10^7]^3-1,PalindromeQ] (* The program generates the first ten terms of the sequence. *) (* _Harvey P. Dale_, Oct 08 2023 *)
%o A062841 (Python)
%o A062841 def afind(limit):
%o A062841   for n in range(limit+1):
%o A062841     s = str(n**3 - 1)
%o A062841     if s == s[::-1]: print(int(s), end=", ")
%o A062841 print(afind(10**7)) # _Michael S. Branicky_, Mar 27 2021
%Y A062841 Intersection of A002113 and A068601.
%K A062841 base,nonn
%O A062841 1,2
%A A062841 _Erich Friedman_, Jul 21 2001
%E A062841 One more term from _Emeric Deutsch_, Feb 26 2005
%E A062841 a(10)-a(14) from _Michael S. Branicky_, Mar 27 2021