%I#16 2021年5月22日09:05:14
%S 0,1,4,8,11,12,17,25,26,27,28,29,37,38,41,45,58,54,60,67,71,73,75,77,
%电话:88,92,94114115116119133
%N整数k,这样k!+1是2个非零平方的和。
%e a(3)=4,因为4!+1 = 4^2 + 3^2.
%t展平@Position[Map[Length,Map[Longth,PowersRepresentations[#,2,2]和@(#!+1)/。0->无]&,范围[0,48]]/。1->无],n_/;n>0]-1(*迈克尔·德弗里格,2015年11月28日*)
%o(PARI)是(n)={对于(i=1,#n=factor(n!+1)~%4,n[1,i]==3&&n[2,i]%2&&return);n&&(vecmin(n[1],])==1||(n[1,1]==2&&n[2],1]%2))}
%Y参见A000404、A038507、A264665、A271186。
%K nonn,更多
%氧1,3
%A Altug Alkan,2015年11月27日
%E a(25)-a(32),来自王金源,2021年5月22日
|