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

A067255 Irregular triangle read by rows: row n gives exponents in prime factorization of n.

Original entry on oeis.org

0, 1, 0, 1, 2, 0, 0, 1, 1, 1, 0, 0, 0, 1, 3, 0, 2, 1, 0, 1, 0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 4, 0, 0, 0, 0, 0, 0, 1, 1, 2, 0, 0, 0, 0, 0, 0, 0, 1, 2, 0, 1, 0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 3, 1, 0, 0, 2, 1, 0, 0, 0, 0, 1, 0, 3, 2, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1
Offset: 1

Views

Author

Jeppe Stig Nielsen, Feb 20 2002

Keywords

Comments

Row lengths are given by A061395(n), n >= 2: [1, 2, 1, 3, 2, 4, 1, 2, ... ].
This sequence contains every finite sequence of nonnegative integers. - Franklin T. Adams-Watters, Jun 22 2005

Examples

			1 = 2^0
2 = 2^1
3 = 2^0 3^1
4 = 2^2
5 = 2^0 3^0 5^1
6 = 2^1 3^1
... and reading the exponents gives the sequence.
Since for example 99=2^0*3^2*5^0*7^0*11^1, we use this symbol for ninety-nine: 99: {0,2,0,0,1}. Concatenating all the symbols for 1,2,3,4,5,6,..., we get the sequence.
		

Crossrefs

Cf. A133457.
Cf. A001222 (row sums), A061395 (lengths of rows n >= 2).
Cf. A007814 (left edge), A071178 (right edge).
Other versions: A054841 (rows reversed and concatenated into a decimal number), A060175 (square array), A082786 (regular triangle), A124010 (with 0's removed, excepting row 1), A143078 (another irregular triangle).

Programs

  • Haskell
    a067255 n k = a067255_tabf !! (n-1) !! (k-1)
    a067255_row 1 = [0]
    a067255_row n = f n a000040_list where
       f 1 _      = []
       f u (p:ps) = g u 0 where
         g v e = if m == 0 then g v' (e + 1) else e : f v ps
                 where (v',m) = divMod v p
    a067255_tabf = map a067255_row [1..]
    -- Reinhard Zumkeller, Jun 11 2013
  • Mathematica
    f[n_] := If[n == 1, {0}, Function[f, ReplacePart[Table[0, {PrimePi[f[[-1, 1]]]}], #] &@ Map[PrimePi@ First@ # -> Last@ # &, f]]@ FactorInteger@ n]; Array[f, 29] // Flatten (* Michael De Vlieger, Mar 08 2019 *)

A082811 Smallest multiple of n beginning with 2.

Original entry on oeis.org

2, 2, 21, 20, 20, 24, 21, 24, 27, 20, 22, 24, 26, 28, 210, 208, 204, 216, 209, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 210, 217, 224, 231, 204, 210, 216, 222, 228, 234, 200, 205, 210, 215, 220, 225, 230, 235, 240, 245, 200, 204, 208, 212, 216, 220
Offset: 1

Views

Author

Amarnath Murthy, Apr 19 2003

Keywords

Comments

a(n) is in {n, 2n, 3n, 4n, 5n, 6n, 7n, 11n, 12n, 13n, 14n}. [Charles R Greathouse IV, Mar 06 2011]

Crossrefs

Programs

  • Haskell
    a082811 n = until ((== 2) . a000030) (+ n) n
    -- Reinhard Zumkeller, Mar 27 2012
  • Mathematica
    f[n_] := Block[{m = n}, While[ First@ IntegerDigits@ m != 2, m += n]; m]; Array[f, 55] (* Robert G. Wilson v *)
  • PARI
    a(n)=forstep(k=n, 14*n, n, if(Vec(Str(k))[1]=="2", return(k))) \\ Charles R Greathouse IV, Mar 06 2011
    
  • Sage
    def A082811(n): return next(k for k in PositiveIntegers() if (n*k).digits()[-1] == 2) # D. S. McNeil, Mar 07 2011
    

A082791 Smallest k such that k*n begins with 2: a(n) = A082811(n)/n.

Original entry on oeis.org

2, 1, 7, 5, 4, 4, 3, 3, 3, 2, 2, 2, 2, 2, 14, 13, 12, 12, 11, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3
Offset: 1

Views

Author

Amarnath Murthy, Apr 19 2003

Keywords

Comments

a(n) is in {1, 2, 3, 4, 5, 6, 7, 11, 12, 13, 14}. [Charles R Greathouse IV, Mar 06 2011]

Crossrefs

Programs

Extensions

More terms from Zak Seidov, Mar 06 2011
Showing 1-3 of 3 results.