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-5 of 5 results.

A090515 Duplicate of A075309.

Original entry on oeis.org

1, 4, 8, 9, 16, 25, 27, 32, 36, 49, 64, 81, 125, 128, 169, 196, 216, 243, 256, 289, 324
Offset: 1

Views

Author

Keywords

A078255 Squares with distinct digits. To make an infinite sequence, we also include m-digit numbers in which each digit occurs no more than ceiling(m/10) times.

Original entry on oeis.org

0, 1, 4, 9, 16, 25, 36, 49, 64, 81, 169, 196, 256, 289, 324, 361, 529, 576, 625, 729, 784, 841, 961, 1024, 1089, 1296, 1369, 1764, 1849, 1936, 2304, 2401, 2601, 2704, 2809, 2916, 3025, 3249, 3481, 3721, 4096, 4356, 4761, 5041, 5184, 5329, 5476, 6084, 6241
Offset: 1

Views

Author

Amarnath Murthy, Nov 24 2002

Keywords

Comments

The largest square with no digit repeated more than m times, for m = 1 to 4: 99066^2 = 9814072356; 9994363488^2 = 99887301530267526144; 999944387118711^2 = 999888777330214565264406301521; 99999444387327303945^2 = 9999888877774166231060453541302412563025.
There are exactly 87 10-digit squares with distinct digits. - Harvey P. Dale, Sep 06 2020

Examples

			100116^2 = 10023213456 is a term because it has 11 digits,
ceiling(11/10) = 2 and no digit occurs more than twice. This is the first term after 9814072356.
		

Crossrefs

Cf. A075309.

Programs

  • Mathematica
    Select[Range[0,80]^2,Max[DigitCount[#]]==1&] (* The program only selects numbers with no more than 10 digits, and even that would require changing the high Range constant to 100000. *) (* Harvey P. Dale, Sep 06 2020 *)
  • Python
    from itertools import count, islice
    def c(n): return all((s:=str(n)).count(d)<=(len(s)-1)//10+1 for d in "0123456789")
    def agen(): yield from filter(c, (k*k for k in count(0)))
    print(list(islice(agen(), 50))) # Michael S. Branicky, Oct 29 2023

Extensions

Edited and extended by David Wasserman, Jun 27 2006

A119509 Positive numbers whose square contains no digit more than once.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 7, 8, 9, 13, 14, 16, 17, 18, 19, 23, 24, 25, 27, 28, 29, 31, 32, 33, 36, 37, 42, 43, 44, 48, 49, 51, 52, 53, 54, 55, 57, 59, 61, 64, 66, 69, 71, 72, 73, 74, 78, 79, 82, 84, 86, 87, 89, 93, 95, 96, 98, 99, 113, 116, 117, 118, 124, 126, 128, 133
Offset: 1

Views

Author

Tanya Khovanova, Jul 26 2006

Keywords

Comments

There are exactly 610 terms. a(610) = 99066 and 99066^2 = 9814072356. - Rick L. Shepherd, Jul 27 2006
If we count 0, there is one more term, for a total of 611. - T. D. Noe, Jun 21 2013

Crossrefs

Subsequence of A045540 = numbers whose squares contain an equal number of each digit that they contain. The first number that belongs to A045540 and doesn't belong to this sequence is number 88.

Programs

  • Magma
    [n: n in [1..10^5] | #Set(d) eq #d where d is Intseq(n^2)];  // Bruno Berselli, Aug 02 2011
    
  • Maple
    lim:=floor(sqrt(9876543210)): A119509:={}: for n from 1 to lim do pandig:=true: d:=convert(n^2,base,10): for k from 0 to 9 do if(numboccur(k, d)>1)then pandig:=false: break: fi: od: if(pandig)then A119509 := A119509 union {n}: fi: od: op(sort(convert(A119509,list))); # Nathaniel Johnston, Jun 23 2011
  • Mathematica
    Select[Range[1000000], Length[IntegerDigits[ # ^2]] == Length[Union[IntegerDigits[ # ^2]]] &] (* Tanya Khovanova, May 29 2007 *)
    Select[Range[10^5], Max[DigitCount[#^2]] <= 1 &] (* T. D. Noe, Aug 02 2011 *)
  • PARI
    is_A119509(n)=#(n=digits(n^2))==#Set(n) \\ M. F. Hasler, Sep 08 2017
    
  • Python
    def ok(n): s = str(n**2); return n > 0 and len(set(s)) == len(s)
    afull = [k for k in range(10**5) if ok(k)] # Michael S. Branicky, Nov 27 2022

Extensions

More terms from Rick L. Shepherd, Jul 27 2006

A090516 Perfect powers (at least a square) in which neighboring digits are distinct.

Original entry on oeis.org

1, 4, 8, 9, 16, 25, 27, 32, 36, 49, 64, 81, 121, 125, 128, 169, 196, 216, 243, 256, 289, 324, 343, 361, 484, 512, 529, 576, 625, 676, 729, 784, 841, 961, 1024, 1089, 1296, 1369, 1521, 1681, 1728, 1764, 1849, 1936, 2025, 2048, 2187, 2197, 2304, 2401, 2601
Offset: 1

Views

Author

Amarnath Murthy, Dec 06 2003

Keywords

Comments

Sequence must be infinite but a proof is needed. Subsidiary sequences; Perfect squares or perfect cubes etc. in which neighboring digits are distinct.
On the other hand, for k >= 22 we might expect only finitely many k-th powers where neighboring digits are distinct (see A318763). - Robert Israel, Sep 03 2018

Crossrefs

Cf. A001597 (perfect powers), A075309 (distinct-digit perfect powers), A318763.

Programs

  • Maple
    N:= 5000:
    filter:= proc(n) local L;
      L:= convert(n,base,10);
      not member(0, L[2..-1]-L[1..-2])
    end proc:
    P:= sort(convert({seq(seq(i^k,i=1..floor(N^(1/k))),k=2..ilog2(N))},list)):
    select(filter, P); # Robert Israel, Sep 03 2018

Extensions

Corrected and extended by Rick L. Shepherd, Jul 01 2005
Offset corrected by Robert Israel, Sep 03 2018

A159078 Number of perfect powers with distinct digits in base n.

Original entry on oeis.org

1, 1, 9, 8, 25, 50, 88, 297, 657, 1418, 3212, 8662, 24185, 64103, 183718
Offset: 2

Views

Author

Johan Särnbratt, Apr 04 2009

Keywords

Examples

			The 8 powers with unique digits in base 5 are 1, 4, 8, 9, 16, 27, 144, and 576; in base 5 these are 1, 4, 13, 14, 31, 102, 1304, and 4301.
		

Crossrefs

Programs

  • PARI
    okdigs(digs) = {for (i = 1, #digs-1, for (j = i+1, #digs, if (digs[j] == digs[i], return (0);););); return (1);}
    a(n) = {b = n; sols = Set([1]); vmax = b^b; pmax = ceil(log(vmax)/log(2)); for (p = 2, pmax, i = 2; while ((iep = i^p) < vmax, if (okdigs(digits(iep, b)), sols = Set(concat(sols, iep));); i++;);); #sols;} \\ Michel Marcus, Aug 19 2013

Extensions

a(11) - a(16) from Johan Särnbratt, Apr 21 2009
Showing 1-5 of 5 results.