OFFSET
0,2
LINKS
P. J. C. Lamont, The number of Cayley integers of given norm, Proceedings of the Edinburgh Mathematical Society, 25.1 (1982): 101-103. See (7).
MAPLE
PROG
(Python)
from sympy import divisor_sigma
def A318938(n): return (1+22*((1<<(3*(m:=(~n&n-1).bit_length())+3))-1)//7)*divisor_sigma(n>>m, 3)<<4 if n else 1 # Chai Wah Wu, Jul 11 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Sep 15 2018
STATUS
approved