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.

A029783 Exclusionary squares: numbers n such that no digit of n is present in n^2.

Original entry on oeis.org

2, 3, 4, 7, 8, 9, 17, 18, 22, 24, 29, 33, 34, 38, 39, 44, 47, 53, 54, 57, 58, 59, 62, 67, 72, 77, 79, 84, 88, 92, 94, 144, 157, 158, 173, 187, 188, 192, 194, 209, 212, 224, 237, 238, 244, 247, 253, 257, 259, 307, 313, 314, 333, 334, 338, 349, 353, 359
Offset: 1

Views

Author

Keywords

Comments

Complement of A189056; A076493(a(n)) = 0. - Reinhard Zumkeller, Apr 16 2011
A258682(a(n)) = a(n)^2. - Reinhard Zumkeller, Jun 07 2015
a(78) = 567 and a(112) = 854 are the only two numbers k such that the equation k^2 = m uses only once each of the digits 1 to 9 (reference David Wells). Exactly: 567^2 = 321489, and, 854^2 = 729316 (see A059930). - Bernard Schott, Jan 28 2021

Examples

			From _M. F. Hasler_, Oct 16 2018: (Start)
It is easy to construct infinite subsequences of the form S(a,b)(n) = a*R(n) + b, where R(n) = (10^n-1)/9 is the repunit of length n. Among these are:
S(3,0) = (3, 33, 333, ...), S(3,1) = (4, 34, 334, 3334, ...), S(3,5) = (8, 38, 338, ...), also b = 26, 44, 434, ... (with a = 3); S(6,1) = (7, 67, 667, ...), S(6,6) = (72, 672, 6672, ...) (excluding n=1), S(6,7) = (673, 6673, ...) (excluding also n=2 here), S(6,-7) = (59, 659, 6659, ...), and others. (End)
		

References

  • Clifford A. Pickover, A Passion for Mathematics, Wiley, 2005; see p. 60.
  • David Wells, The Penguin Dictionary of Curious and Interesting Numbers, Revised Edition, 1997, page 144, entry 567.

Crossrefs

Cf. A059930 (n and n^2 use different digits), A112736 (numbers whose squares are exclusionary).

Programs

  • Haskell
    a029783 n = a029783_list !! (n-1)
    a029783_list = filter (\x -> a258682 x == x ^ 2) [1..]
    -- Reinhard Zumkeller, Jun 07 2015, Apr 16 2011
    
  • Mathematica
    Select[Range[1000], Intersection[IntegerDigits[ # ], IntegerDigits[ #^2]] == {} &] (* Tanya Khovanova, Dec 25 2006 *)
  • PARI
    is_A029783(n)=!#setintersect(Set(digits(n)),Set(digits(n^2))) \\ M. F. Hasler, Oct 16 2018
    
  • Python
    # see linked program
    
  • Python
    from itertools import count, islice
    def A029783_gen(startvalue=0): # generator of terms >= startvalue
        return filter(lambda n:not set(str(n))&set(str(n**2)),count(max(startvalue,0)))
    A029783_list = list(islice(A029783_gen(),30)) # Chai Wah Wu, Feb 12 2023

Extensions

Definition slightly reworded at the suggestion of Franklin T. Adams-Watters by M. F. Hasler, Oct 16 2018

A112736 Numbers whose square is exclusionary.

Original entry on oeis.org

2, 3, 4, 7, 8, 9, 17, 18, 24, 29, 34, 38, 39, 47, 53, 54, 57, 58, 59, 62, 67, 72, 79, 84, 92, 94, 157, 158, 173, 187, 192, 194, 209, 237, 238, 247, 253, 257, 259, 307, 314, 349, 359, 409, 437, 459, 467, 547, 567, 612, 638, 659, 672, 673, 689, 712, 729, 738, 739, 749
Offset: 1

Views

Author

Lekraj Beedassy, Sep 16 2005

Keywords

Comments

The number m with no repeated digits has an exclusionary square m^2 if the latter is made up of digits not appearing in m. For the corresponding exclusionary squares see A112735.
a(49) = 567 and a(68) = 854 are the only two numbers k such that the equation k^2 = m uses only once each of the digits 1 to 9 (reference David Wells). Exactly: 567^2 = 321489, and, 854^2 = 729316. - Bernard Schott, Dec 20 2021

Examples

			409^2 = 167281 and the square 167281 is made up of digits not appearing in 409, hence 409 is a term.
		

References

  • H. Ibstedt, Solution to Problem 2623, "Exclusionary Powers", pp. 346-9, Journal of Recreational Mathematics, Vol. 32 No.4 2003-4 Baywood NY.
  • David Wells, The Penguin Dictionary of Curious and Interesting Numbers, Revised Edition, 1997, page 144, entry 567.

Crossrefs

This is a subsequence of A029783 (Digits of n are not present in n^2) of numbers with all different digits. The sequence A059930 (Numbers n such that n and n^2 combined use different digits) is a subsequence of this sequence.

Programs

  • Mathematica
    Select[Range[1000], Intersection[IntegerDigits[ # ], IntegerDigits[ #^2]] == {} && Length[Union[IntegerDigits[ # ]]] == Length[IntegerDigits[ # ]] &] (* Tanya Khovanova, Dec 25 2006 *)

Extensions

More terms from Tanya Khovanova, Dec 25 2006

A085451 Numbers n such that n and prime[n] together use only distinct digits.

Original entry on oeis.org

1, 2, 3, 4, 6, 8, 9, 10, 12, 15, 16, 17, 19, 20, 21, 24, 25, 27, 28, 35, 39, 40, 45, 53, 57, 58, 60, 61, 69, 70, 72, 79, 85, 89, 90, 91, 93, 96, 98, 104, 108, 120, 124, 145, 146, 147, 150, 162, 236, 237, 253, 254, 259, 315, 316, 359, 380, 384, 390, 405, 406, 460, 461, 518
Offset: 1

Views

Author

Zak Seidov, Jul 01 2003

Keywords

Comments

There are exactly 101 such numbers in the sequence. Numbers with distinct digits in A010784. Primes with distinct digits in A029743. The case n and n^2 (exactly 22 numbers) in A059930.
A178788(A045532(a(n))) = 1. [From Reinhard Zumkeller, Jun 30 2010]

Examples

			3106 is in the sequence (and the last term) because it and prime[3106]=28549 together use all 10 distinct digits.
		

Crossrefs

Programs

  • Mathematica
    bb = {}; Do[idpn = IntegerDigits[Prime[n]]; idn = IntegerDigits[n]; If[Length[idn] + Length[idpn] == Length[Union[idn, idpn]], bb = {bb, n}], {n, 1, 100000}]; Flatten[bb]

A059931 Numbers n such that n and n^(1/2) combined use different digits.

Original entry on oeis.org

4, 9, 16, 49, 64, 81, 289, 324, 576, 841, 2809, 2916, 3249, 3481, 5184, 6241, 7056, 43681, 67081, 321489, 651249, 729316
Offset: 1

Views

Author

Patrick De Geest, Feb 15 2001

Keywords

Comments

There are exactly 22 solutions in base 10.

Crossrefs

A085453 Numbers n such that n^2 and n^3 together use only distinct digits.

Original entry on oeis.org

2, 3, 8, 9, 24, 69
Offset: 1

Views

Author

Zak Seidov, Jul 01 2003

Keywords

Comments

There are only six such numbers (in base 10). Numbers with distinct digits in A010784. Primes with distinct digits in A029743. The case n and n^2 (exactly 22 numbers) in A059930. The case n and prime[n] (exactly 101 numbers) in A085451.

Examples

			69 is (the last) term because 69^2=4761 and 69^3=328509 together use all 10 distinct digits.
		

Crossrefs

Programs

  • Mathematica
    bb = {}; Do[idpn = IntegerDigits[n^3]; idn = IntegerDigits[n^2]; If[Length[idn] + Length[idpn] == Length[Union[idn, idpn]], bb = {bb, n}], {n, 1, 10000}]; Flatten[bb]
Showing 1-5 of 5 results.