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.

A033104 Number of 5's when k is written in base b for all b and k satisfying 2<=b<=n+1, 1<=k<=n.

This page as a plain text file.
%I A033104 #7 Nov 14 2012 20:19:30
%S A033104 0,0,0,0,1,1,1,1,1,1,2,3,4,5,6,7,9,10,12,13,15,16,19,20,22,24,26,27,
%T A033104 31,33,36,39,43,45,51,53,57,60,63,67,74,76,79,82,88,91,98,100,104,109,
%U A033104 113,116,124,127,132,136,141,144,151,155,162,166
%N A033104 Number of 5's when k is written in base b for all b and k satisfying 2<=b<=n+1, 1<=k<=n.
%t A033104 f[n_] := Count[ Flatten@ Table[ IntegerDigits[k, b], {k, n}, {b, 2, n + 1}], 5] - (n - 5); f[1] = f[2] = f[3] = f[4] = 0; Array[f, 62] (* _Robert G. Wilson v_, Nov 14 2012 *)
%Y A033104 Cf. A033094, A033096, A033098, A033100, A033102, A033103, A033106, A033108, A033110, A033112.
%K A033104 nonn,base
%O A033104 1,11
%A A033104 _Clark Kimberling_