cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A036998 The number of decompositions of n into different parts relatively prime to n.

This page as a plain text file.
%I A036998 #13 Apr 24 2020 08:17:27
%S A036998 1,0,1,1,2,1,4,2,3,2,11,2,17,3,5,5,37,3,53,5,12,7,103,5,70,10,42,11,
%T A036998 255,4,339,23,59,22,130,11,759,32,115,22,1259,10,1609,44,94,64,2589,
%U A036998 22,1674,40,385,84,5119,30,1309,79,665,162,9791,18,12075,217,556,276
%N A036998 The number of decompositions of n into different parts relatively prime to n.
%H A036998 Amiram Eldar, <a href="/A036998/b036998.txt">Table of n, a(n) for n = 1..1000</a>
%t A036998 Table[ Coefficient[ Series[ Times@@((1+z^#)&/@Select[ Range[ q ], GCD[ #, q ]===1& ]), { z, 0, q} ], z^q ], {q, 128} ]
%o A036998 (Haskell)
%o A036998 a036998 n = p (a038566_row n) n where
%o A036998    p _      0 = 1
%o A036998    p []     _ = 0
%o A036998    p (k:ks) m = if m < k then 0 else p ks (m - k) + p ks m
%o A036998 -- _Reinhard Zumkeller_, Jul 05 2013
%Y A036998 Cf. A057562, A038566, A079124.
%K A036998 nonn
%O A036998 1,5
%A A036998 _Wouter Meeussen_
%E A036998 Offset corrected by _Amiram Eldar_, Apr 24 2020