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!)
A223135 Number of distinct sums i + j + k with i, j, k >= 0, i*j*k = n and gcd(i,j,k) <= 1. 3
1, 1, 1, 1, 2, 1, 2, 1, 2, 2, 2, 1, 4, 1, 2, 2, 3, 1, 4, 1, 4, 2, 2, 1, 5, 2, 2, 2, 4, 1, 5, 1, 3, 2, 2, 2, 7, 1, 2, 2, 5, 1, 5, 1, 4, 4, 2, 1, 7, 2, 4, 2, 4, 1, 5, 2, 5, 2, 2, 1, 10, 1, 2, 4, 4, 2, 5, 1, 4, 2, 5, 1, 10, 1, 2, 4, 4, 2, 5, 1, 7, 3, 2, 1, 10, 2, 2, 2, 5, 1, 8, 2, 4, 2, 2, 2, 7, 1, 4, 4, 8, 1, 5, 1, 5, 5 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,5
COMMENTS
Note that gcd(0,m) = m for any m.
LINKS
Antti Karttunen, Table of n, a(n) for n = 0..10001 (terms n = 0..100 from Robert Price)
MATHEMATICA
f[n_] := Length[Complement[Union[Flatten[Table[If[i*j*k == n && GCD[i, j, k] ≤ 1, {i + j + k}], {i, 0, n}, {j, 0, n}, {k, 0, n}], 2]], {Null}]]; Table[f[n], {n, 0, 100}]
PROG
(PARI) A223135(n) = { my(sums=Set()); if(!n, 1, fordiv(n, i, for(j=i, (n/i), if(!(n%j), for(k=j, n/(i*j), if((i*j*k==n)&&(gcd(i, gcd(j, k))<=1), sums = Set(concat(sums, (i+j+k)))))))); length(sums)); }; \\ Antti Karttunen, Oct 21 2017
CROSSREFS
Sequence in context: A361702 A295218 A338430 * A084113 A323086 A345936
KEYWORD
nonn
AUTHOR
Robert Price, Jun 12 2013
EXTENSIONS
More terms from Antti Karttunen, Oct 21 2017
STATUS
approved

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 19 02:04 EDT 2024. Contains 371782 sequences. (Running on oeis4.)