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.

Showing 1-1 of 1 results.

A084622 Numbers n such that f(n) is a strict local extremum for the function f(x) = phi(x) + sigma(x); i.e., either f(n) > f(n-1) and f(n) > f(n+1) or f(n) < f(n-1) and f(n) < f(n+1).

Original entry on oeis.org

12, 13, 16, 17, 18, 19, 20, 21, 24, 25, 28, 29, 30, 31, 32, 33, 36, 37, 40, 41, 42, 43, 44, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 60, 61, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 76, 77, 78, 79, 80, 84, 85, 88, 89, 90, 91, 92, 93, 96, 97, 100, 101, 102, 103, 104, 108, 109
Offset: 1

Views

Author

Klaus Brockhaus, Jun 01 2003

Keywords

Comments

For runs of consecutive strict local extrema (alternating minima/maxima, zigzags) of f, cf. A066923.
A066485 is an analog of the present sequence for the prime gaps function.

Examples

			16 is a term since f(16) is a local maximum: f(15) = 32, f(16) = 39, f(17) = 34.
		

Crossrefs

Programs

  • PARI
    f(x)=eulerphi(x)+sigma(x)
    {locext(n)=local(a,b,c); a=if(n<2,0,f(n-1)); b=f(n); c=f(n+1); if(ac,1,if(a>b&&b
    				
Showing 1-1 of 1 results.