OFFSET
1,3
COMMENTS
1) For all odd n, a(n) = n^2 - 1.
2) All numbers in sequence are divisible by 8.
3) a(n) is not divisible by 16 if and only if n = 8k+3 or n = 8k+5.
Proposition 2) is true. Proof: 0 mod 2 = 0, so the conjecture trivially holds when n is a power of 2. For n not a power of 2, a(n) has by definition the repeated prime factor 2^2 and so is divisible by 8 when a(n) > 4. - Felix Fröhlich, Sep 19 2017
FORMULA
a(n) = p^2 * ceiling(n/p) * floor(n/p), where p = A171977(n). - Giovanni Resta, Sep 19 2017
EXAMPLE
a(40) = 1536 because 40 has three 2's in its prime factorization, and the closest integers to 40 that have at least four 2's are 32 and 48, and 32 times 48 = 1536.
MATHEMATICA
a[n_] := Block[{p = 2 2^IntegerExponent[n, 2]}, Floor[n/p] Ceiling[n/p] p^2]; Array[a, 60] (* Giovanni Resta, Sep 19 2017 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
J. Lowell, Sep 18 2017
EXTENSIONS
More terms from Giovanni Resta, Sep 19 2017
STATUS
approved