The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A268681 Sum of unique squarefree numbers in first n rows of Pascal's triangle. 1

%I #16 Feb 13 2016 23:19:57

%S 1,1,3,6,12,27,42,105,175,175,385,1408,1474,2566,8677,15607,15607,

%T 39934,39934,133300,264305,559565,1288392,5482695,5493321,5546451,

%U 11088442,11088442,24211552,88854292,88854757,133243378,133243378,133243411,2337205436

%N Sum of unique squarefree numbers in first n rows of Pascal's triangle.

%H Peter Kagey, <a href="/A268681/b268681.txt">Table of n, a(n) for n = 1..250</a>

%H Project Euler, <a href="https://projecteuler.net/problem=203">Problem 203: Squarefree Binomial Coefficients</a>

%e a(5) = 1 + 2 + 3 + 6 = 12 because the squarefree numbers in the first 5 rows of Pascal's triangle are 1, 2, 3, and 6:

%e 1

%e 1 1

%e 1 2 1

%e 1 3 3 1

%e 1 4 6 4 1

%t lim = 35; t = Select[#, SquareFreeQ] & /@ Table[Binomial[n, k], {n, 0, lim}, {k, 0, n}]; Table[Total@ Union[Flatten@ Take[t, n]], {n, lim}] (* _Michael De Vlieger_, Feb 11 2016 *)

%o (PARI) row(n) = vector(n, k, k--; binomial(n-1, k));

%o sqfrow(n) = select(x->issquarefree(x), row(n));

%o lista(nn) = {my(s = 0, vsqf = []); for (n=1, nn, vsqf = concat(vsqf, sqfrow(n)); vsqf = vecsort(vsqf,,8); print1(vecsum(vsqf), ", "););} \\ _Michel Marcus_, Feb 11 2016

%Y Cf. A005117, A007318.

%K nonn

%O 1,3

%A _Peter Kagey_, Feb 10 2016

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 May 14 12:38 EDT 2024. Contains 372533 sequences. (Running on oeis4.)