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.

A195942 Zeroless prime powers (excluding primes): Intersection of A025475 and A052382.

Original entry on oeis.org

1, 4, 8, 9, 16, 25, 27, 32, 49, 64, 81, 121, 125, 128, 169, 243, 256, 289, 343, 361, 512, 529, 625, 729, 841, 961, 1331, 1369, 1681, 1849, 2187, 2197, 3125, 3481, 3721, 4489, 4913, 5329, 6241, 6561, 6859, 6889, 7921, 8192
Offset: 1

Views

Author

M. F. Hasler, Sep 25 2011

Keywords

Crossrefs

Programs

  • Haskell
    a195942 n = a195942_list !! (n-1)
    a195942_list = filter (\x -> a010051 x == 0 && a010055 x == 1) a052382_list
    -- Reinhard Zumkeller, Sep 27 2011
  • Mathematica
    mx = 10^10; t = {1}; p = 2; While[pw = 2; While[n = p^pw; n <= mx, If[Union[IntegerDigits[n]][[1]] > 0, AppendTo[t, n]]; pw++]; pw > 2, p = NextPrime[p]]; t = Sort[t] (* T. D. Noe, Sep 27 2011 *)
  • PARI
    for( n=1,9999, is_A025475(n) && is_A052382(n) && print1(n","))
    

Formula

A195942 = A025475 intersect A052382.
A010055(a(n)) * (1 - A010051(a(n))) * A168046(a(n)) = 1. - Reinhard Zumkeller, Sep 27 2011