login
Number of terms in row n of A082268.
2

%I #7 Aug 07 2015 03:07:23

%S 1,1,0,5,15,0,55,85,0,325,1023,0,3786,4678,0,21809

%N Number of terms in row n of A082268.

%p A082269 := proc(n) local prts, alln,p,i,ncand,n10 ; if n = 1 then RETURN(1) ; fi ; alln := {} ; prts := combinat[partition](n) ; for p from 1 to nops(prts) do n10 := combinat[permute](op(p,prts)) ; for i from 1 to nops(n10) do ncand := op(i,n10) ; ncand := add(op(j,ncand)*10^(j-1),j=1..nops(ncand) ) ; if gcd(ncand,n) = 1 and ncand <> n then alln := alln union {ncand} ; fi ; od ; od ; nops(alln) ; end: seq(A082269(n),n=1..16) ; # _R. J. Mathar_, Jul 15 2007

%Y Cf. A082268.

%K base,more,nonn

%O 1,4

%A _Amarnath Murthy_, Apr 13 2003

%E More terms from _R. J. Mathar_, Jul 15 2007