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.

A245364 Let p = first digit of n, q = number obtained if p is removed from n; let r = last digit of n, s = number obtained if r is removed from n; sequence give n such that p*q = r*s != 0, p! = q, and r! = s.

Original entry on oeis.org

111, 164, 195, 222, 265, 333, 444, 498, 555, 666, 777, 888, 999, 1111, 1664, 1995, 2222, 2665, 3333, 4444, 4847, 4998, 5555, 6545, 6666, 7424, 7777, 8888, 9999, 11111, 16664, 19995, 22222, 26665, 33333, 43243, 44444, 49998, 55555, 66666, 77777, 86486, 88888, 99999, 111111, 166664
Offset: 1

Views

Author

Derek Orr, Jul 19 2014

Keywords

Comments

Once A010785(n) > 100, then A010785 is a subsequence.
By the definition, one-digit and two-digit numbers are ruled out.

Examples

			1*64 = 16*4 = 64. Thus 164 is a term of this sequence.
9*999 = 999*9 = 8991. Thus 9999 is a term of this sequence.
		

Crossrefs

Cf. A010785.

Programs

  • Mathematica
    pqrsQ[n_]:=Module[{p=IntegerDigits[n][[1]],q=FromDigits[Rest[ IntegerDigits[ n]]],r=Mod[n,10],s=Floor[n/10]},p*q==r*s!=0 && p!=q && r!=s]; Select[ Range[100,200000],pqrsQ] (* Harvey P. Dale, Aug 29 2020 *)
  • Python
    for n in range(100, 10**5):
      s = str(n)
      num = int(s[:1])*int(s[1:])
      if num != 0 and num == int(s[:len(s)-1])*int(s[len(s)-1:]):
        print(n, end=', ')