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!)
A273799 Numbers n such that the decimal digits of n-phi(n) are a permutation of those of n. 1
91, 342, 351, 627, 684, 874, 950, 1824, 2114, 2318, 2715, 3051, 3171, 3172, 3402, 3411, 4228, 6344, 6804, 7346, 8414, 8456, 8474, 9093, 9125, 9191, 9254, 9500, 9531, 9548, 9672, 9824, 9950, 15804, 18010, 18312, 18508, 18930, 19190, 21028, 22126, 23218, 24180, 24716 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
91 - phi(91) = 91 - 72 = 19;
342 - phi(342) = 342 - 108 = 234.
MAPLE
with(numtheory): P:=proc(q) local a, b, c, d, k, n; for n from 1 to q do a:=n; b:=n-phi(n);
if ilog10(a)=ilog10(b) then c:=[]; d:=[]; for k from 1 to ilog10(n)+1 do
c:=[op(c), (a mod 10)]; a:=trunc(a/10); d:=[op(d), (b mod 10)]; b:=trunc(b/10); od;
c:=sort(c); d:=sort(d); if c=d then print(n); fi; fi; od; end: P(10^25);
MATHEMATICA
Select[Range[25000], Sort@ IntegerDigits@ # == Sort@ IntegerDigits[# - EulerPhi@ #] &] (* Michael De Vlieger, Jun 01 2016 *)
CROSSREFS
Sequence in context: A350206 A020441 A209255 * A063137 A234131 A234124
KEYWORD
nonn,easy,base
AUTHOR
Paolo P. Lava, May 31 2016
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 July 14 09:51 EDT 2024. Contains 374318 sequences. (Running on oeis4.)