Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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!)
A117288 Numbers k for which the cototient k-phi(k) is an octagonal number. 7
1, 2, 3, 5, 7, 11, 12, 13, 14, 16, 17, 19, 23, 29, 31, 37, 41, 43, 45, 47, 53, 57, 59, 61, 67, 71, 73, 76, 79, 83, 85, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 144, 149, 151, 157, 160, 163, 167, 173, 176, 179, 181, 184, 188, 191, 193, 197, 199, 211, 223 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
45 is in the sequence because 45-phi(45) = 21, which is an octagonal number.
MATHEMATICA
octQ[n_] := n == 0 || IntegerQ[(Sqrt[48*n + 16] + 4)/12]; Select[Range[250], octQ[# - EulerPhi[#]] &] (* Amiram Eldar, Mar 23 2021 *)
PROG
(PARI) isok(n) = ispolygonal(n - eulerphi(n), 8); \\ Michel Marcus, Feb 26 2014
CROSSREFS
Sequence in context: A262061 A104193 A242694 * A117283 A198096 A137923
KEYWORD
nonn
AUTHOR
Luc Stevens (lms022(AT)yahoo.com), Apr 23 2006
EXTENSIONS
Offset corrected by Amiram Eldar, Mar 23 2021
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 August 19 01:22 EDT 2024. Contains 375284 sequences. (Running on oeis4.)