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.

A135591 a(1)=1; for n > 1, a(n) is number of earlier terms equal to number of proper divisors of n.

This page as a plain text file.
%I A135591 #20 Apr 16 2025 19:40:09
%S A135591 1,1,2,1,3,1,4,1,1,1,7,0,7,1,1,1,10,0,10,0,1,1,12,2,2,1,1,0,14,2,14,0,
%T A135591 1,1,1,0,17,1,1,2,19,2,19,0,0,1,20,0,6,0,1,0,21,2,1,2,1,1,24,0,24,1,0,
%U A135591 1,1,2,27,0,1,2,28,0,28,1,0,0,1,2,30,0,1,1,32,0,1,1,1,2,35,0,1,0,1,1,1,0,39
%N A135591 a(1)=1; for n > 1, a(n) is number of earlier terms equal to number of proper divisors of n.
%C A135591 Similar to A125087, but instead of exponents, we use number of proper divisors.
%H A135591 Katarzyna Matylla, <a href="/A135591/b135591.txt">Table of n, a(n) for n = 1..1000</a>
%e A135591 a(12)=0 because 12 has 5 proper divisors (1, 2, 3, 4 and 6) and there is no 5 in a(1), a(2), ..., a(11).
%t A135591 s={1};Do[AppendTo[s,Count[s,DivisorSigma[0,n]-1]],{n,2,97}];s (* _James C. McMahon_, Apr 16 2025 *)
%o A135591 (Maxima) max:1000; f:makelist(0,i,1,max); apr:makelist(0, i, 0, max); f[1]:1; apr[2]:1; for n:2 through max do block(f[n]:apr[divsum(n,0)], apr[f[n]+1]:apr[f[n]+1]+1);
%Y A135591 Cf. A032741, A125087.
%K A135591 nonn
%O A135591 1,3
%A A135591 _Katarzyna Matylla_, Feb 25 2008