[go: up one dir, main page]

login
Revision History for A285323 (Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing entries 1-10 | older changes
#20 by Peter Luschny at Sun May 09 09:51:25 EDT 2021
STATUS

reviewed

approved

#19 by Joerg Arndt at Sun May 09 08:39:10 EDT 2021
STATUS

proposed

reviewed

#18 by F. Chapoton at Sun May 09 08:20:01 EDT 2021
STATUS

editing

proposed

#17 by F. Chapoton at Sun May 09 08:19:51 EDT 2021
PROG

from functools import reduce

n = n + = r

def a(n): return a065642(a065642(a019565(n)))//a019565(n)

print ([a(n) for n in range(101)] ) # Indranil Ghosh, Apr 20 2017

STATUS

approved

editing

Discussion
Sun May 09
08:20
F. Chapoton: adapt py code to py3
#16 by N. J. A. Sloane at Sat Dec 07 12:18:29 EST 2019
PROG

print [a(n) for n in xrangerange(101)] # Indranil Ghosh, Apr 20 2017

Discussion
Sat Dec 07
12:18
OEIS Server: https://oeis.org/edit/global/2837
#15 by N. J. A. Sloane at Thu Apr 20 15:02:13 EDT 2017
STATUS

proposed

approved

#14 by Indranil Ghosh at Thu Apr 20 11:15:13 EDT 2017
STATUS

editing

proposed

#13 by Indranil Ghosh at Thu Apr 20 11:14:54 EDT 2017
PROG

def a019565(n): return reduce(mul, (prime(i+1) for i, v in enumerate(bin(n)[:1:-1]) if v == '1')) if n > 0 else 1 # This function from _Chai Wah Wu_

#12 by Indranil Ghosh at Thu Apr 20 11:11:32 EDT 2017
PROG

(Python)

from operator import mul

from sympy import prime, primefactors

def a019565(n): return reduce(mul, (prime(i+1) for i, v in enumerate(bin(n)[:1:-1]) if v == '1')) if n > 0 else 1

def a007947(n): return 1 if n<2 else reduce(mul, primefactors(n))

def a065642(n):

if n==1: return 1

r=a007947(n)

n = n + r

while a007947(n)!=r:

n+=r

return n

def a(n): return a065642(a065642(a019565(n)))/a019565(n)

print [a(n) for n in xrange(101)] # Indranil Ghosh, Apr 20 2017

STATUS

approved

editing

#11 by N. J. A. Sloane at Thu Apr 20 09:20:03 EDT 2017
STATUS

proposed

approved