login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A109072 Number of decimal digits ( counted with multiplicity ) in n but not in n^2. 2

%I #11 Feb 23 2017 22:20:44

%S 0,0,1,1,1,0,0,1,1,1,0,0,1,1,1,1,1,2,2,1,1,1,2,1,2,0,1,0,1,2,1,1,1,2,

%T 2,1,1,1,2,2,1,1,1,1,2,1,1,2,1,1,0,1,1,2,2,0,1,2,2,2,0,1,2,0,0,1,0,2,

%U 1,1,1,1,2,1,0,1,0,2,1,2,1,1,1,1,2,1,1,1,2,1,1,1,2,1,2,0,0,1,1,0,0,0,1,1,1

%N Number of decimal digits ( counted with multiplicity ) in n but not in n^2.

%H Robert Israel, <a href="/A109072/b109072.txt">Table of n, a(n) for n = 0..10000</a>

%p f:= proc(n) local L2;

%p L2:= convert(n^2,base,10);

%p nops(remove(t -> member(t,L2), convert(n,base,10)));

%p end proc:

%p map(f, [$0..200]); # _Robert Israel_, Feb 22 2017

%t UnsortedComplement[x_List, y__List]:=Replace[x, Dispatch[(#\[RuleDelayed]Sequence[])&/@Union[y]], 1]; Table[Length[UnsortedComplement[IntegerDigits[n], IntegerDigits[n^2]]], {n, 0, 200}]

%Y Cf. A076493 (number of common and distinct decimal digits of n and n^2).

%Y Cf. A109071 (number of common decimal digits (counted with multiplicity) of n and n^2).

%K base,easy,nonn

%O 0,18

%A _Zak Seidov_, Jun 20 2005

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 21:09 EDT 2024. Contains 371798 sequences. (Running on oeis4.)