[go: up one dir, main page]

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!)
A236386 Numbers m such that phi(m) is an oblong number. 3
3, 4, 6, 7, 9, 13, 14, 18, 21, 25, 26, 28, 31, 33, 36, 42, 43, 44, 49, 50, 62, 66, 73, 86, 87, 91, 95, 98, 111, 116, 117, 121, 135, 146, 148, 152, 157, 161, 169, 174, 182, 190, 201, 207, 211, 216, 222, 228, 234, 237, 241, 242, 252, 268, 270, 287, 289, 305 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
An oblong number (A002378) is of the form k*(k+1) where k is a natural number.
From Bernard Schott, Feb 27 2023: (Start)
Subsequence of primes is A002383 because in this case phi(k^2+k+1) = k*(k+1).
Subsequence of oblong numbers is A359847 where k and phi(k) are both oblong numbers. (End)
LINKS
EXAMPLE
phi(13) = 12 = 3*4, an oblong number; so 13 is a term of the sequence.
MAPLE
filter := m -> issqr(1 + 4*phi(m)) : select(filter, [$(1 .. 700)]); # Bernard Schott, Feb 26 2023
MATHEMATICA
Select[Range[500], IntegerQ@Sqrt[1 + 4*EulerPhi[#]] &] (* Giovanni Resta, Jan 24 2014 *)
PROG
(PARI) isok(m) = my(t=eulerphi(m)); !(t%2) && ispolygonal(t/2, 3); \\ Michel Marcus, Feb 27 2023
(Python)
from itertools import count, islice
from sympy.ntheory.primetest import is_square
from sympy import totient
def A236386_gen(startvalue=1): # generator of terms >= startvalue
return filter(lambda n:is_square((totient(n)<<2)+1), count(max(1, startvalue)))
A236386_list = list(islice(A236386_gen(), 20)) # Chai Wah Wu, Feb 28 2023
CROSSREFS
Similar, but where phi(m) is: A039770 (square), A039771 (cube), A078164 (biquadrate), A096503 (repdigit), A117296 (palindrome), A360944 (triangular).
Sequence in context: A137673 A226245 A369610 * A066271 A127594 A094604
KEYWORD
nonn,easy
AUTHOR
Joseph L. Pe, Jan 24 2014
EXTENSIONS
a(16)-a(58) from Giovanni Resta, Jan 24 2014
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 29 17:19 EDT 2024. Contains 375518 sequences. (Running on oeis4.)