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!)
A066219 Numbers n such that |phi(n+1)-phi(n)| = |d(n+1)-d(n)|, where phi is Euler's totient function and d(n) = number of divisors of n. 0

%I #5 Feb 11 2014 19:05:23

%S 5,7,45,104,105,345,1754,3255,16215,17534,22935,67431,70634,93074,

%T 983775,1025504,1156701,2200694,2619705,2745765,3365438,4163355,

%U 4447064,4695704,6372794,7838265,9718904,11903775,23992215,26879684,29357475,37239735,40588485

%N Numbers n such that |phi(n+1)-phi(n)| = |d(n+1)-d(n)|, where phi is Euler's totient function and d(n) = number of divisors of n.

%e |phi(6)-phi(5)| = |2-4| = |d(6)-d(5)| = |4-2|

%o (PARI) ph1=1; d1=1; for(n=1, 40588485, ph2=eulerphi(n+1); d2=numdiv(n+1); if(abs(ph2-ph1)==abs(d2-d1), print1(n ", ")); ph1=ph2; d1=d2) /* _Donovan Johnson_, Oct 19 2012 */

%K nonn

%O 1,1

%A _Joseph L. Pe_, Dec 17 2001

%E a(7)-a(33) from _Donovan Johnson_, Oct 19 2012

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 25 04:42 EDT 2024. Contains 371964 sequences. (Running on oeis4.)