The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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
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, 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, 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 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,18
LINKS
MAPLE
f:= proc(n) local L2;
L2:= convert(n^2, base, 10);
nops(remove(t -> member(t, L2), convert(n, base, 10)));
end proc:
map(f, [$0..200]); # Robert Israel, Feb 22 2017
MATHEMATICA
UnsortedComplement[x_List, y__List]:=Replace[x, Dispatch[(#\[RuleDelayed]Sequence[])&/@Union[y]], 1]; Table[Length[UnsortedComplement[IntegerDigits[n], IntegerDigits[n^2]]], {n, 0, 200}]
CROSSREFS
Cf. A076493 (number of common and distinct decimal digits of n and n^2).
Cf. A109071 (number of common decimal digits (counted with multiplicity) of n and n^2).
Sequence in context: A239702 A202084 A337763 * A100727 A366134 A064892
KEYWORD
base,easy,nonn
AUTHOR
Zak Seidov, Jun 20 2005
STATUS
approved

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 May 27 02:41 EDT 2024. Contains 372847 sequences. (Running on oeis4.)