OFFSET
1,1
COMMENTS
Also m for which A025547(m)=A025547(m+1). Query: a(n) seems to be equal to A030343(n+4) - 1. Is this true?
While any odd number>1 can be the leg of a primitive Pythagorean triangle, the m-th odd number 2m+1=A061346 forms leg common to more than one PPT. - Lekraj Beedassy, Jul 12 2006
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..2500
FORMULA
a(n) = (A061346(n)-1)/2. - David Wasserman, Oct 26 2004
EXAMPLE
10 is in the sequence because we have 2*10 - 1 = 19 and lcm(1,3,5,...,19)=166966608033225=7950790858725*21 which is divisible by 2*10 + 1 = 21.
MATHEMATICA
Select[Range[150], Divisible[LCM@@Range[1, 2#-1, 2], 2#+1]&] (* Harvey P. Dale, Jan 22 2023 *)
PROG
(PARI) isok(n) = {lc = 1; for (i = 1, 2*n-1, lc = lcm(lc, i); ); return (lc % (2*n+1) == 0); } \\ Michel Marcus, Jul 27 2013
(Python)
from sympy import primepi, integer_nthroot
def A083390(n):
def f(x): return int(n+sum(primepi(integer_nthroot((x<<1)|1, k)[0])-1 for k in range(1, x.bit_length()+1)))
m, k = n, f(n)
while m != k: m, k = k, f(k)
return m # Chai Wah Wu, Dec 01 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
Lekraj Beedassy, Jun 11 2003
EXTENSIONS
More terms from David Wasserman, Oct 26 2004
STATUS
approved
