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!)
A117287 Numbers k for which the cototient k-phi(k) is a heptagonal number. 7
1, 2, 3, 5, 7, 11, 13, 15, 17, 19, 23, 29, 31, 34, 37, 41, 43, 47, 49, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 159, 163, 167, 173, 175, 179, 181, 189, 191, 193, 196, 197, 199, 208, 211, 223, 227, 229, 233 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
49 is in the sequence because 49-phi(49) = 7, which is a heptagonal number.
MATHEMATICA
hnQ[n_]:=Module[{c=n-EulerPhi[n]}, IntegerQ[(3+Sqrt[9+40c])/10]]; Join[{1}, Select[Range[0, 250], hnQ]] (* Harvey P. Dale, Mar 26 2011 *)
PROG
(PARI) isok(n) = ispolygonal(n - eulerphi(n), 7); \\ Michel Marcus, Feb 26 2014
CROSSREFS
Sequence in context: A319319 A003277 A322833 * A121615 A097605 A143578
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 April 23 13:51 EDT 2024. Contains 371914 sequences. (Running on oeis4.)