OFFSET
1,3
MAPLE
with(combinat): a:=proc(n) local P, ct, j: P:=partition(n): ct:=0: for j from 1 to numbpart(n) do if gcd(P[j][1], P[j][nops(P[j])])=1 then ct:=ct+1 else ct:=ct: fi: od: end: seq(a(n), n=1..50); # Emeric Deutsch, Apr 20 2006
MATHEMATICA
Table[Count[IntegerPartitions[n], _?(GCD[First[#], Last[#]] == 1 &)], {n, 46}] (* Jayanta Basu, Jul 13 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladeta Jovovic, Apr 17 2006
EXTENSIONS
More terms from Emeric Deutsch, Apr 20 2006
STATUS
approved