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.

A123927 Characteristic function of natural numbers with number of divisors equal to a Lucas number.

This page as a plain text file.
%I A123927 #14 Nov 22 2017 20:47:58
%S A123927 1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,0,1,0,1,0,1,1,1,0,1,1,1,0,1,0,1,0,1,1,
%T A123927 1,0,1,1,1,0,1,0,1,0,0,1,1,0,1,0,1,0,1,0,1,0,1,1,1,0,1,1,0,1,1,0,1,0,
%U A123927 1,0,1,0,1,1,0,0,1,0,1,0,0,1,1,0,1,1,1,0,1,0,1,0,1,1,1,0,1,0,0,0,1,0,1
%N A123927 Characteristic function of natural numbers with number of divisors equal to a Lucas number.
%H A123927 Antti Karttunen, <a href="/A123927/b123927.txt">Table of n, a(n) for n = 1..65537</a>
%H A123927 <a href="/index/Ch#char_fns">Index entries for characteristic functions</a>
%H A123927 <a href="/index/Eu#epf">Index entries for sequences computed from exponents in factorization of n</a>
%F A123927 a(n) = A102460(A000005(n)). - _Antti Karttunen_, Nov 22 2017
%t A123927 With[{nn = 103}, Table[Boole[MemberQ[#, DivisorSigma[0, n]]], {n, nn}] &@ TakeWhile[Union@ Array[LucasL, 40, 0], # <= nn &]] (* _Michael De Vlieger_, Nov 22 2017 *)
%o A123927 (PARI)
%o A123927 A102460(n) = { my(u1=1,u2=3,old_u1); if(n<=2,sign(n),while(n>u2,old_u1=u1;u1=u2;u2=old_u1+u2);(u2==n)); };
%o A123927 A123927(n) = A102460(numdiv(n)); \\ _Antti Karttunen_, Nov 22 2017
%Y A123927 Cf. A000005, A102460, A119885, A119911, A122895.
%K A123927 easy,nonn
%O A123927 1,1
%A A123927 _Giovanni Teofilatto_, Nov 22 2006
%E A123927 Superfluous 0 at the beginning of data removed by _Antti Karttunen_, Nov 22 2017