OFFSET
1,3
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10000
PROG
(Haskell)
a241919 1 = 0
a241919 n = i - j where
(i:j:_) = map a049084 $ reverse (1 : a027748_row n)
-- Reinhard Zumkeller, May 15 2014
(Python)
from sympy import factorint, primefactors, primepi
def a061395(n): return 0 if n==1 else primepi(primefactors(n)[-1])
def a053585(n):
if n==1: return 1
p = primefactors(n)[-1]
return p**factorint(n)[p]
def a051119(n): return n/a053585(n)
def a(n): return a061395(n) - a061395(a051119(n)) # Indranil Ghosh, May 19 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, May 13 2014
STATUS
approved