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!)
A352788 Squares in A213544. 0
1, 9, 25, 10510564 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Squares that are partial sums of A023896.
LINKS
EXAMPLE
a(3) = 25 is a term because A213544(6) = 25 = 5^2.
MAPLE
s:= 1: R:= 1: count:= 1:
for n from 2 to 10^6 do
s:= s + n/2*numtheory:-phi(n);
if issqr(s) then
count:= count+1; R:= R, s;
fi;
od:
R;
MATHEMATICA
f[1] = 1; f[n_] := n*EulerPhi[n]/2; seq[len_, max_] := Module[{s = {}, sum = 0, c = 0, n = 1}, While[c < len && n < max, sum += f[n]; n++; If[IntegerQ@Sqrt[sum], c++; AppendTo[s, sum]]]; s]; seq[4, 1000] (* Amiram Eldar, Apr 07 2022 *)
PROG
(Python)
from itertools import count, islice
from sympy import totient
def A352788_gen(): # generator of terms
c, m, ms = 0, 1, 1
for n in count(1):
c += 1 if n <= 2 else n*totient(n)//2
if c == ms:
yield c
else:
while c > ms:
ms += 2*m+1
m += 1
A352788_list = list(islice(A352788_gen(), 4)) # Chai Wah Wu, Apr 08 2022
CROSSREFS
Sequence in context: A048056 A038534 A117755 * A144114 A209969 A144701
KEYWORD
nonn,more
AUTHOR
Robert Israel, Apr 02 2022
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 September 15 14:56 EDT 2024. Contains 375938 sequences. (Running on oeis4.)