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.

A181904 a(n) = 2*(4^n - 1) / A027760(n).

Original entry on oeis.org

3, 5, 63, 17, 1023, 195, 16383, 4369, 262143, 31775, 4194303, 12291, 67108863, 89478485, 1073741823, 16843009, 17179869183, 172229265, 274877906943, 6663706835, 4398046511103, 254959218035, 70368744177663, 206208774147, 1125899906842623, 1501199875790165
Offset: 1

Views

Author

Peter Luschny, Apr 01 2012

Keywords

Comments

The Clausen numbers A027760 divide 2*(4^n - 1).

Crossrefs

Programs

  • Mathematica
    a[n_] := 2*(4^n-1)/Times @@ Select[Divisors[n]+1, PrimeQ]; Table[a[n], {n, 1, 26}] (* Jean-François Alcover, Jul 29 2013 *)
  • Sage
    def A181904(n) :
        def A027760(n) :
            S = divisors(n)
            S = map(lambda i: i+1, S)
            S = filter(lambda i: is_prime(i), S)
            return mul(i for i in S)
        return 2*(4^n-1) / A027760(n)
    [A181904(n) for n in (1..26)]