Hi all, Using Vladimir's definition, we can say that terms of A046790 are numbers of the form k*p^2 for some odd prime p and integer k or 8*k for some integer k. A046791(n): Squarefree bit of A046790(n) multiplied by 4 if A046790(n) is divisible by 4. Best, David