|
抵消
|
1,2
|
|
评论
|
n是素数,当a(n)=n;
对于素数p,k>0:a(p^k)=p*(kmod2);
|
|
链接
|
|
|
例子
|
a(35)=a(5*7)=a“xor”a(7)=“101”xor“111”=“010”=2。
|
|
数学
|
a[n_]:=BitX或@@Flatten[表格[First[#],{Last[#]}]&/@FactorInteger[n]];表[a[n],{n,1,84}](*Jean-François Alcover公司,2013年3月11日*)
|
|
黄体脂酮素
|
(哈斯克尔)
导入数据。位(xor)
a072594=foldl1异或。a027746_row::Integer->Integer
(PARI)a(n)=如果(n==1,返回(1));my(f=系数(n),t);对于(i=1,#f~,if(f[i,2]%2,t=bitxor(t,f[i、1]));t吨\\查尔斯·格里特豪斯四世2016年8月28日
|
|
交叉参考
|
|
|
关键词
|
非n,美好的
|
|
作者
|
|
|
状态
|
经核准的
|