OFFSET
1,2
COMMENTS
a(n) is the number of integer partitions of n whose geometric mean is an integer. - Gus Wiseman, Jul 19 2019
LINKS
Wikipedia, Geometric mean
EXAMPLE
From Gus Wiseman, Jul 19 2019: (Start)
The a(1) = 1 through a(8) = 4 partitions:
(1) (2) (3) (4) (5) (6) (7) (8)
(11) (111) (22) (41) (33) (421) (44)
(1111) (11111) (222) (1111111) (2222)
(111111) (11111111)
(End)
MATHEMATICA
Table[Length[Select[IntegerPartitions[n], IntegerQ[GeometricMean[#]]&]], {n, 30}] (* Gus Wiseman, Jul 19 2019 *)
PROG
(Python)
from math import prod
from sympy import integer_nthroot
from sympy.utilities.iterables import partitions
def A067539(n): return sum(1 for s, p in partitions(n, size=True) if integer_nthroot(prod(a**b for a, b in p.items()), s)[1]) # Chai Wah Wu, Sep 24 2023
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Naohiro Nomoto, Jan 27 2002
EXTENSIONS
Terms a(61) onwards from Max Alekseyev, Feb 06 2010
STATUS
approved