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.
%I A085491 #16 Feb 04 2023 17:22:39 %S A085491 1,1,0,1,0,1,0,1,0,0,0,2,0,0,0,1,0,1,0,1,0,0,0,5,0,0,0,1,0,3,0,1,0,0, %T A085491 0,5,0,0,0,3,0,2,0,0,0,0,0,10,0,0,0,0,0,1,0,2,0,0,0,31,0,0,0,1,0,1,0, %U A085491 0,0,1,0,26,0,0,0,0,0,1,0,6,0,0,0,23,0,0,0,1,0,20,0,0,0,0,0,21,0,0,0,1 %N A085491 Number of ways to write n as sum of distinct divisors of n+1. %C A085491 a(A085492(n)) = 0; a(A085493(n)) > 0; a(A085494(n)) = 1. %H A085491 Alois P. Heinz, <a href="/A085491/b085491.txt">Table of n, a(n) for n = 0..10000</a> %F A085491 a(n) = [x^n] Product_{d divides (n+1)} (1 + x^d). - _Alois P. Heinz_, Feb 04 2023 %e A085491 n=11, divisors of 12=11+1 that are not greater 11: {1,2,3,4,6}, 11=6+5=6+4+1, therefore a(11)=2. %p A085491 a:= proc(m) option remember; local b, l; b, l:= %p A085491 proc(n, i) option remember; `if`(n=0, 1, `if`(i<1, 0, %p A085491 b(n, i-1)+`if`(l[i]>n, 0, b(n-l[i], i-1)))) %p A085491 end, sort([numtheory[divisors](m+1)[]]); %p A085491 forget(b); b(m, nops(l)-1) %p A085491 end: %p A085491 seq(a(n), n=0..120); # _Alois P. Heinz_, Mar 12 2019 %t A085491 a[n_] := Module[{dd}, dd = Select[Divisors[n+1], # <= n&]; Select[ IntegerPartitions[n, dd // Length, dd], Reverse[#] == Union[#]&] // Length]; Array[a, 100, 0] (* _Jean-François Alcover_, Mar 12 2019 *) %Y A085491 Cf. A085496. %K A085491 nonn %O A085491 0,12 %A A085491 _Reinhard Zumkeller_, Jul 03 2003 %E A085491 a(0)=1 prepended by _Alois P. Heinz_, Mar 12 2019