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.

A178838 Indices n such that the sums of the squares of the digits of Fibonacci(n) are prime.

This page as a plain text file.
%I A178838 #4 Aug 31 2014 18:10:11
%S A178838 8,14,15,18,22,25,27,29,39,44,45,46,47,65,68,69,90,94,100,103,104,107,
%T A178838 113,116,124,133,135,138,157,164,165,166,167,168,172,175,177,187,188,
%U A178838 193,207,223,226,229,233,247,257,260,263,265,266,270,273,276,295,299
%N A178838 Indices n such that the sums of the squares of the digits of Fibonacci(n) are prime.
%e A178838 8 is in the sequence because Fibonacci(8)=21, and 2^2 + 1^2 = 5 prime ;
%e A178838 14 is in the sequence because Fibonacci(14)=377,and 3^2 + 7^2 + 7^2 = 107 prime.
%p A178838 with(combinat, fibonacci):nn:= 120: for n from 1 to 700 do:p:=fibonacci(n):l:=length(p):n0:=p:s:=0:for m from 1 to l do:q:=n0:u:=irem(q, 10):v:=iquo(q, 10):n0:=v :s:=s+u^2:od:if type(s, prime)=true then printf(`%d, `, n): else fi:od:
%t A178838 Flatten[Position[Fibonacci[Range[300]],_?(PrimeQ[Total[ IntegerDigits[ #]^2]]&), {1},Heads->False]] (* _Harvey P. Dale_, Aug 31 2014 *)
%Y A178838 Cf. A000045
%K A178838 nonn,base
%O A178838 1,1
%A A178838 _Michel Lagneau_, Jun 17 2010