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.

A321243 a(n) is the product of n and all its decimal digits individually except the leftmost digit.

Original entry on oeis.org

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 11, 24, 39, 56, 75, 96, 119, 144, 171, 0, 21, 44, 69, 96, 125, 156, 189, 224, 261, 0, 31, 64, 99, 136, 175, 216, 259, 304, 351, 0, 41, 84, 129, 176, 225, 276, 329, 384, 441, 0, 51, 104, 159, 216, 275, 336, 399, 464, 531
Offset: 0

Views

Author

Jacob Swales, Nov 14 2018

Keywords

Comments

First differs from A067079 at n=102: A067079(102) = 408 != a(102) = 0.

Examples

			a(33) = 33*3 = 99. a(234) = 234*3*4 = 2808.
		

Crossrefs

Cf. A067079.

Programs

  • Mathematica
    a[n_] := n * If[n<10, 1, Times@@Rest[IntegerDigits[n]]]; Array[a, 100, 0] (* Amiram Eldar, Nov 15 2018 *)
    Table[n Times@@Rest[IntegerDigits[n]],{n,0,60}] (* Harvey P. Dale, Mar 06 2023 *)
  • Python
    def a(n):
        seq_num = n
        for letter in range(len(str(n))):
            if letter != 0:
                seq_num = seq_num * int(str(n)[letter])
        return seq_num