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.

A243218 Number of n-digit integers x such that x + A007954(x) has n digits, where A007954(x) is the product of decimal digits of x.

This page as a plain text file.
%I A243218 #18 Jan 09 2016 03:04:22
%S A243218 5,63,756,8268,86225,880519,8898517,89471520,897248572,8985712192,
%T A243218 89925825853,899614672173,8997997446679,89989593213308,
%U A243218 899945924502919,8999718992342921,89998539650321017,899992410699128981,8999960560129165187,89999795045731606967
%N A243218 Number of n-digit integers x such that x + A007954(x) has n digits, where A007954(x) is the product of decimal digits of x.
%H A243218 Hiroaki Yamanouchi, <a href="/A243218/b243218.txt">Table of n, a(n) for n = 1..35</a>
%e A243218 For n=1, the five 1-digit integers 0,1,2,3,4 satisfy the condition, with results being respectively 0,2,4,6 and 8, hence a(1)=5.
%o A243218 (PARI) DP(n)= my(d = digits(n)); prod(i=1, #d, d[i]);
%o A243218 a(n) = {nb = 0; if (n==1, istart = 0, istart = 10^(n-1)); for (i=istart, 10^n-1, if (i + DP(i) < 10^n, nb++);); nb;}
%Y A243218 Cf. A007954, A230099, A242945, A243219.
%K A243218 nonn,base
%O A243218 1,1
%A A243218 _Michel Marcus_, Jun 01 2014
%E A243218 a(9)-a(17) from _Hiroaki Yamanouchi_, Sep 29 2014
%E A243218 a(18)-a(20) from _Hiroaki Yamanouchi_, Jan 08 2016