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

A318261 a(n) is the odd part of A318262(n).

Original entry on oeis.org

3, 3, 7, 5, 3, 7, 15, 5, 3, 7, 15, 31, 9, 5, 21, 3, 7, 15, 31, 63, 9, 21, 3, 7, 15, 31, 63, 127, 17, 9, 5, 21, 85, 3, 51, 7, 15, 31, 63, 127, 255, 17, 9, 73, 5, 21, 85, 3, 51, 7, 15, 31, 63, 127, 255, 511, 33, 17, 73, 5, 21, 85, 341, 11, 93, 3, 51, 7, 15, 31
Offset: 1

Views

Author

Peter Luschny, Sep 05 2018

Keywords

Comments

The odd part of n is the largest odd divisor of n (A000265).

Crossrefs

Programs

  • Sage
    def A318261_list(len):
        count = 0; n = 0; L = []
        while count < len:
            n += 2
            m = power_mod(2, euler_phi(n), n)
            if m.is_power_of(2):
                v = 2^valuation(n, 2)
                L.append(n // v)
                count += 1
        return L
    print(A318261_list(70))
Showing 1-1 of 1 results.