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.

A236046 Smallest number m > 1 such that m^n does not contain m as a substring.

Original entry on oeis.org

2, 2, 2, 11, 2, 3, 3, 11, 3, 3, 2, 11, 2, 11, 2, 11, 11, 3, 2, 14, 2, 2, 7, 11, 2, 3, 3, 11, 11, 12, 14, 11, 2, 2, 2, 11, 11, 2, 3, 14, 2, 13, 12, 11, 2, 11, 12, 11, 3, 14, 11, 11, 2, 3, 11, 11, 12, 11, 11, 14, 12, 11, 2, 11, 12, 11, 11, 13, 11, 13, 13, 18
Offset: 2

Views

Author

Reinhard Zumkeller, Jan 18 2014

Keywords

Crossrefs

Programs

  • Haskell
    import Data.List (isInfixOf)
    a236046 n = head [x | x <- [2..], not $ show x `isInfixOf` (show $ x ^ n)]
    
  • PARI
    a(n) = my(k=2); while(#strsplit(Str(k^n), Str(k))!=1, k++); k; \\ Michel Marcus, Jan 25 2022