OFFSET
9,1
EXAMPLE
MATHEMATICA
a[n_] := (n - 8)*(n + 8)/2^IntegerExponent[(n - 8)*(n + 8), 2]; Array[a, 53, 9] (* Amiram Eldar, Nov 22 2021 *)
PROG
(Ruby) p (9..27).map { |n| x = (n-8)*(n+8); x /= 2 while x.even?; x }
(PARI) A000265(n) = n >> valuation(n, 2);
a(n) = A000265((n-8)*(n+8));
[a(n)|n<-[9..27]]
(Python)
def A348762(n):
a, b = divmod(n*n-64, 2)
while b == 0:
a, b = divmod(a, 2)
return 2*a+b # Chai Wah Wu, Dec 05 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Simon Strandgaard, Oct 31 2021
STATUS
approved