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-10 of 12 results. Next

A029986 Numbers k such that k^2 is palindromic in base 4.

Original entry on oeis.org

0, 1, 5, 17, 21, 65, 71, 83, 257, 273, 281, 317, 1025, 1055, 4097, 4161, 4193, 4401, 5157, 5179, 5221, 16385, 16511, 16865, 17239, 65537, 65793, 65921, 66753, 68695, 69521, 69777, 80739, 82053, 82171, 82309, 82885, 83301, 262145
Offset: 1

Views

Author

Keywords

Crossrefs

Numbers k such that k^2 is palindromic in base b: A003166 (b=2), A029984 (b=3), this sequence (b=4), A029988 (b=5), A029990 (b=6), A029992 (b=7), A029805 (b=8), A029994 (b=9), A002778 (b=10), A029996 (b=11), A029737 (b=12), A029998 (b=13), A030072 (b=14), A030073 (b=15), A029733 (b=16), A118651 (b=17).

Programs

  • Mathematica
    Select[Range[0,300000],IntegerDigits[#^2,4]==Reverse[ IntegerDigits[ #^2,4]]&] (* Harvey P. Dale, Dec 01 2015 *)
  • PARI
    isok(k) = my(d=digits(k^2,4)); d == Vecrev(d); \\ Michel Marcus, Jul 04 2021

A029990 Numbers k such that k^2 is palindromic in base 6.

Original entry on oeis.org

0, 1, 2, 7, 37, 43, 76, 91, 217, 259, 1064, 1297, 1333, 1519, 1555, 2704, 3367, 7777, 8029, 9079, 19747, 46657, 46873, 47989, 48205, 54439, 54655, 54695, 83979, 118027, 241304, 279937, 281449, 287749, 326599, 707707, 1679617
Offset: 1

Views

Author

Keywords

Crossrefs

Cf. A007092.
Numbers k such that k^2 is palindromic in base b: A003166 (b=2), A029984 (b=3), A029986 (b=4), A029988 (b=5), this sequence (b=6), A029992 (b=7), A029805 (b=8), A029994 (b=9), A002778 (b=10), A029996 (b=11), A029737 (b=12), A029998 (b=13), A030072 (b=14), A030073 (b=15), A029733 (b=16), A118651 (b=17).

Programs

  • Mathematica
    palindromicQ[n_, b_:10] := TrueQ[IntegerDigits[n, b] == Reverse[IntegerDigits[n, b]]]; Select[Range[1000], palindromicQ[#^2, 6] &] (* Alonso del Arte, Mar 05 2017 *)
  • PARI
    ispal(n,base)=my(d=digits(n,base)); d==Vecrev(d)
    is(n)==ispal(n^2,6) \\ Charles R Greathouse IV, Mar 09 2017

A029733 Numbers k such that k^2 is palindromic in base 16.

Original entry on oeis.org

0, 1, 2, 3, 17, 34, 257, 273, 289, 305, 319, 514, 530, 546, 773, 1377, 4097, 4369, 4641, 8194, 8254, 8466, 8734, 9046, 51629, 65537, 65793, 66049, 66305, 69649, 69905, 70161, 70417, 73505, 73761, 74017, 74273, 76879, 92327, 131074
Offset: 1

Views

Author

Keywords

Crossrefs

Numbers k such that k^2 is palindromic in base b: A003166 (b=2), A029984 (b=3), A029986 (b=4), A029988 (b=5), A029990 (b=6), A029992 (b=7), A029805 (b=8), A029994 (b=9), A002778 (b=10), A029996 (b=11), A029737 (b=12), A029998 (b=13), A030072 (b=14), A030073 (b=15), this sequence (b=16), A118651 (b=17).

Programs

  • Mathematica
    n2palQ[n_]:=Module[{id=IntegerDigits[n^2,16]},id==Reverse[id]]; Select[ Range[ 0,150000],n2palQ] (* Harvey P. Dale, Mar 31 2018 *)
  • Python
    from itertools import count, islice
    def A029733_gen(): # generator of terms
        return filter(lambda k: (s:=hex(k**2)[2:])[:(t:=(len(s)+1)//2)]==s[:-t-1:-1],count(0))
    A029733_list = list(islice(A029733_gen(),20)) # Chai Wah Wu, Jun 23 2022

A029805 Numbers k such that k^2 is palindromic in base 8.

Original entry on oeis.org

0, 1, 2, 3, 6, 9, 11, 27, 65, 73, 79, 81, 83, 195, 219, 237, 366, 513, 543, 585, 697, 1094, 1539, 1755, 1875, 2910, 4097, 4161, 4225, 4477, 4617, 4681, 4727, 4891, 5267, 8698, 8730, 11841, 12291, 12483, 12675, 13065, 13851, 14673, 15021
Offset: 1

Views

Author

Keywords

Comments

The only powers of 2 in this sequence are 1 and 2. - Alonso del Arte, Feb 25 2017

Examples

			3 is in the sequence because 3^2 = 9 = 11 in base 8, which is a palindrome.
4 is not in the sequence because 4^2 = 16 = 20 in base 8, which is not a palindrome.
		

Crossrefs

Numbers k such that k^2 is palindromic in base b: A003166 (b=2), A029984 (b=3), A029986 (b=4), A029988 (b=5), A029990 (b=6), A029992 (b=7), this sequence (b=8), A029994 (b=9), A002778 (b=10), A029996 (b=11), A029737 (b=12), A029998 (b=13), A030072 (b=14), A030073 (b=15), A029733 (b=16), A118651 (b=17).

Programs

  • Mathematica
    palQ[n_, b_:10] := Module[{idn = IntegerDigits[n, b]}, idn == Reverse[idn]]; Select[Range[0, 16000], palQ[#^2, 8] &] (* Harvey P. Dale, May 19 2012 *)
  • Python
    from itertools import count, islice
    def A029805_gen(): # generator of terms
        return filter(lambda k: (s:=oct(k**2)[2:])[:(t:=(len(s)+1)//2)]==s[:-t-1:-1],count(0))
    A029805_list = list(islice(A029805_gen(),20)) # Chai Wah Wu, Jun 23 2022

A029994 Numbers k such that k^2 is palindromic in base 9.

Original entry on oeis.org

0, 1, 2, 10, 20, 82, 91, 100, 164, 730, 820, 1460, 6562, 6643, 6724, 7300, 7381, 7462, 13124, 13642, 13660, 14281, 54050, 59050, 59860, 65620, 66430, 118100, 123010, 126286, 161410, 161896, 487750, 531442, 532171
Offset: 1

Views

Author

Keywords

Crossrefs

Cf. A007095.
Numbers k such that k^2 is palindromic in base b: A003166 (b=2), A029984 (b=3), A029986 (b=4), A029988 (b=5), A029990 (b=6), A029992 (b=7), A029805 (b=8), this sequence (b=9), A002778 (b=10), A029996 (b=11), A029737 (b=12), A029998 (b=13), A030072 (b=14), A030073 (b=15), A029733 (b=16), A118651 (b=17).

Programs

  • Mathematica
    pb9Q[n_]:=Module[{idn=IntegerDigits[n^2,9]},idn==Reverse[idn]]; Select[ Range[0,600000],pb9Q] (* Harvey P. Dale, Sep 29 2013 *)

A029996 Numbers k such that k^2 is palindromic in base 11.

Original entry on oeis.org

0, 1, 2, 3, 6, 12, 24, 26, 72, 84, 122, 133, 144, 244, 255, 279, 382, 732, 1332, 1464, 1596, 2414, 2664, 2796, 3062, 4476, 7992, 14642, 14763, 14884, 15984, 16105, 16226, 17326, 29284, 29405, 30626, 33675, 34701, 63546, 87246, 87852, 88578
Offset: 1

Views

Author

Keywords

Crossrefs

Numbers k such that k^2 is palindromic in base b: A003166 (b=2), A029984 (b=3), A029986 (b=4), A029988 (b=5), A029990 (b=6), A029992 (b=7), A029805 (b=8), A029994 (b=9), A002778 (b=10), this sequence (b=11), A029737 (b=12), A029998 (b=13), A030072 (b=14), A030073 (b=15), A029733 (b=16), A118651 (b=17).

A118651 Numbers k such that k^2 is a palindrome when written in base 17.

Original entry on oeis.org

0, 1, 2, 3, 4, 6, 12, 18, 28, 36, 84, 108, 290, 307, 324, 341, 580, 597, 614, 1080, 1614, 1740, 1842, 2616, 3378, 3480, 3720, 4344, 4824, 4914, 5220, 5526, 6408, 9828, 10134, 10440, 14472, 17944, 19336, 24360, 27624, 29484, 31320, 33144, 33960
Offset: 1

Views

Author

Neven Juric (neven.juric(AT)apis-it.hr), May 12 2006

Keywords

Examples

			E.g. 4^2 = 16_10 = G_16, 6^2 = 36_10 = 22_17, etc.
		

Crossrefs

Cf. A029984 for base 3, A029986 for base 4, A029988 for base 5, A029990 for base 6, A029992 for base 7, A029805 for base 8, A029994 for base 9, A002778 for base 10, A029996 for base 11, A029733 for base 16

A029737 Numbers whose square is palindromic in base 12.

Original entry on oeis.org

0, 1, 2, 3, 13, 26, 145, 157, 169, 179, 181, 290, 292, 302, 611, 1729, 1745, 1783, 1885, 2041, 3458, 3614, 3796, 20737, 20881, 21025, 21169, 22477, 22621, 22765, 24073, 24217, 24361, 24599, 25523, 25579, 28613, 41474, 41618, 41908, 43214
Offset: 1

Views

Author

Keywords

Crossrefs

Numbers k such that k^2 is palindromic in base b: A003166 (b=2), A029984 (b=3), A029986 (b=4), A029988 (b=5), A029990 (b=6), A029992 (b=7), A029805 (b=8), A029994 (b=9), A002778 (b=10), A029996 (b=11), this sequence (b=12), A029998 (b=13), A030072 (b=14), A030073 (b=15), A029733 (b=16), A118651 (b=17).

Programs

  • Mathematica
    pal12Q[n_]:=Module[{idn12=IntegerDigits[n^2,12]},idn12==Reverse[idn12]]
    Select[Range[0,50000],pal12Q]  (* Harvey P. Dale, Feb 06 2011 *)

A029993 Squares which are palindromes in base 7.

Original entry on oeis.org

0, 1, 4, 16, 64, 100, 121, 400, 1024, 1600, 2500, 3249, 4096, 6400, 25600, 40000, 118336, 160000, 250000, 302500, 310249, 532900, 1000000, 1893376, 2050624, 3579664, 5769604, 6007401, 6250000, 7573504, 7845601, 11833600
Offset: 1

Views

Author

Keywords

Crossrefs

Squares which are palindromes in base b: A029983 (b=2), A029985 (b=3), A029987 (b=4), A029989 (b=5), A029991 (b=6), this sequence (b=7), A029806 (b=8), A029995 (b=9), A002779 (b=10), A029997 (b=11), A029738 (b=12), A029999 (b=13), A030074 (b=14), A030075 (b=15), A029734 (b=16).
Cf. A029992.

Programs

  • Mathematica
    pal7Q[n_]:=Module[{idn7=IntegerDigits[n,7]},idn7==Reverse[idn7]]; Select[Range[0,3500]^2,pal7Q] (* Harvey P. Dale, Dec 15 2011 *)

Formula

a(n) = A029992(n)^2. - Seiichi Manyama, Oct 16 2021

A029998 Numbers k such that k^2 is palindromic in base 13.

Original entry on oeis.org

0, 1, 2, 3, 14, 28, 170, 183, 196, 209, 308, 340, 353, 366, 2198, 2380, 2562, 2898, 4026, 4242, 4396, 4578, 7078, 7662, 28562, 28731, 28900, 29069, 30772, 30941, 31110, 32813, 32982, 33151, 37374, 51510, 52360, 54942, 55449, 57124, 57293
Offset: 1

Views

Author

Keywords

Crossrefs

Numbers k such that k^2 is palindromic in base b: A003166 (b=2), A029984 (b=3), A029986 (b=4), A029988 (b=5), A029990 (b=6), A029992 (b=7), A029805 (b=8), A029994 (b=9), A002778 (b=10), A029996 (b=11), A029737 (b=12), this sequence (b=13), A030072 (b=14), A030073 (b=15), A029733 (b=16), A118651 (b=17).
Showing 1-10 of 12 results. Next