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!)
A227296 Number of partitions of n into parts <= phi(n), where phi is Euler's totient function (cf. A000010). 3

%I #22 May 24 2018 09:25:34

%S 1,1,1,2,3,6,4,14,15,26,23,55,34,100,90,146,186,296,199,489,434,725,

%T 807,1254,919,1946,2063,2943,3036,4564,2462,6841,7665,9871,11098,

%U 14744,12384,21636,23928,30677,31603,44582,31570,63260,69414,86420,99795,124753

%N Number of partitions of n into parts <= phi(n), where phi is Euler's totient function (cf. A000010).

%H Alois P. Heinz, <a href="/A227296/b227296.txt">Table of n, a(n) for n = 0..10000</a>

%F a(n) ~ exp(Pi*sqrt(2*n/3)) / (4*sqrt(3)*n). - _Vaclav Kotesovec_, May 24 2018

%p with(numtheory):

%p b:= proc(n, i) option remember; `if`(n=0 or i=1, 1,

%p b(n, i-1) +`if`(i>n, 0, b(n-i, i)))

%p end:

%p a:= n-> b(n, phi(n)):

%p seq(a(n), n=0..100); # _Alois P. Heinz_, May 11 2015

%t (* Requires version 6.0+ *) Table[Length[IntegerPartitions[n, n, Range[EulerPhi[n]]]], {n, 0, 47}] (* _Ivan Neretin_, May 11 2015 *)

%t intPartLen[n_, i_] := intPartLen[n, i] = If[n == 0 || i == 1, 1, intPartLen[n, i - 1] + If[i > n, 0, intPartLen[n - i, i]]]; intPartLenPhi[n_] := intPartLen[n, EulerPhi[n]]; Table[intPartLenPhi[n], {n, 0, 99}] (* _Jean-François Alcover_, Nov 11 2015, after _Alois P. Heinz_ *)

%o (Haskell)

%o a227296 n = p [1 .. a000010 n] n where

%o p _ 0 = 1

%o p [] _ = 0

%o p ks'@(k:ks) m = if m < k then 0 else p ks' (m - k) + p ks m

%Y Cf. A079124, A057562.

%K nonn

%O 0,4

%A _Reinhard Zumkeller_, Jul 05 2013

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 April 24 22:17 EDT 2024. Contains 371964 sequences. (Running on oeis4.)