OFFSET
0,3
COMMENTS
LINKS
EXAMPLE
With the positive terms written as an irregular triangle in which the row lengths are the terms of A011782 the sequence begins:
1;
8;
12, 28;
12, 36, 60, 68;
12, 36, 60, 84, 108, 132, 156, 148;
12, 36, 60, 84, 108, 132, 156, 180, 204, 228, 252, 276, 300, 324, 348, 308;
...
MATHEMATICA
With[{z=7}, Differences[Join[{0, 0}, Flatten[Array[(2^#-1)^2+12Range[0, 2^(#-1)-1]^2&, z]]]]] (* Generates 2^z terms *) (* Paolo Xausa, Nov 15 2023, after Omar E. Pol *)
PROG
(GW-BASIC) 10' a256531 First 2^z-1 positive terms: 20 z=6: defdbl a: for i=1 to z: for j=0 to 2^(i-1)-1: n=n+1: a(n)=(2^i-1)^2 + 3*(2*j)^2: print a(n)-a(n-1); : next j: next i: end
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
Omar E. Pol, Apr 21 2015
STATUS
approved