OFFSET
1,3
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
PROG
(PARI) is2s(n)=my(f=factor(n>>valuation(n, 2))); for(i=1, #f~, if(bitand(f[i, 2], 1) && bitand(f[i, 1], 3)==3, return(0))); 1
is2t(n)=my(m9=n%9, f); if(m9==5 || m9==8, return(0)); is2s(4*n+1)
is(n)=my(o2=valuation(n, 2), f); if(n==0, return(1)); if(bitand(o2, 1)==0 && bitand(n>>o2, 7)==7, return(0)); if(issquare(n), return(ispolygonal(n, 3))); if(ispolygonal(n, 3), return(0)); is2t(n)==is2s(n) \\ Charles R Greathouse IV, Mar 17 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ctibor O. Zizka, Mar 19 2010
EXTENSIONS
Data corrected and extended by Mohammed Yaseen, Mar 17 2022
STATUS
approved