login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A034019
Numbers that are imprimitively (and possibly also primitively) represented by x^2+xy+y^2.
3
4, 9, 12, 16, 25, 27, 28, 36, 48, 49, 52, 63, 64, 75, 76, 81, 84, 100, 108, 112, 117, 121, 124, 144, 147, 148, 156, 169, 171, 172, 175, 189, 192, 196, 208, 225, 228, 243, 244, 252, 256, 268, 279, 289, 292, 300, 304, 316, 324, 325, 333, 336, 343
OFFSET
1,1
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
PROG
(PARI) is(n)=my(f=factor(n), t); for(i=1, #f[, 1], if(f[i, 1]%3<2 && f[i, 2]>1, t=1); if(f[i, 1]%3==2, if(f[i, 2]%2, return(0), t=1))); t \\ Charles R Greathouse IV, Nov 04 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved