%I#21 2022年11月18日18:09:03
%S 1,0,0,0,1,0,2,1,0,0、0,0和0,0,
%温度0,0,1,0,2,1,0,0,00,0_0,0,0,0,1,2,1,1,0,0、0,1,0、10,1,0,1、0,2,1,
%U 3,2,1,0,0,00,0,1,0,2,3,2,2,2,2,2,2,2,3,4,2,1,1,1,1,2,2,1,1,1
%N总孔数N的十进制展开式,假设4没有孔。
%C假设4表示为无孔。
%H Indranil Ghosh,n的表格,n=0..50000的a(n)</a>
%F a(10i+j)=a(i)+a(j)等。
%e 8有两个孔,因此a(8)=2。
%ta[n/;0<=n<=9]:=a[n]={1,0,0,0,0,0,1}[n+1]];a[n_]:=总数[a[#]+1&/@(id=IntegerDigits[n])]-长度[id];表[a[n],{n,0104}](*_Jean-François Alcover_,2013年11月22日*)
%t表格[DigitCount[x]。{0,0,00,0,1,0,2,1,1},{x,0,104}](*迈克尔·德弗里格,2017年2月2日,在扎克·塞多夫之后,A064692*)
%o(Python)
%o定义A064532(n):
%o x=str(n)
%o返回x.count(“0”)+x.count(“6”)+x.count(“8”)*2+x.count(“9”)#_Indranil Ghosh,2017年2月2日
%o(PARI)h(n)=[1,0,0,0,0,1,0,2,1][n];
%o a(n)=如果(n,my(d=数字(n));总和(i=1,#d,h(d[i]+1)),1);\\_米歇尔·马库斯,2022年11月11日
%Y参考A064529、A064530。等于A064531-1。
%Y参考A358439(数字总和)。
%K nonn,easy,基本
%0、9
%A _N.J.A.Sloane,2001年10月7日
%E更多来自马修·康罗伊的条款,2001年10月9日
|