|
|
A055045
|
|
Numbers of the form 4^i*(8*j+5).
|
|
4
|
|
|
5, 13, 20, 21, 29, 37, 45, 52, 53, 61, 69, 77, 80, 84, 85, 93, 101, 109, 116, 117, 125, 133, 141, 148, 149, 157, 165, 173, 180, 181, 189, 197, 205, 208, 212, 213, 221, 229, 237, 244, 245, 253, 261, 269, 276, 277, 285, 293, 301, 308, 309, 317
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
Numbers not of the form x^2+2y^2+6z^2.
|
|
LINKS
|
|
|
FORMULA
|
|
|
PROG
|
(Haskell)
a055045 n = a055045_list !! (n-1)
a055045_list = filter ((== 5) . (flip mod 8) . f) [1..] where
f x = if r == 0 then f x' else x where (x', r) = divMod x 4
(Python)
from itertools import count, islice
def A055045_gen(startvalue=1): # generator of terms >= startvalue
return filter(lambda n:not (m:=(~n&n-1).bit_length())&1 and (n>>m)&7==5, count(max(startvalue, 1)))
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|