The OEIS is supported by the many generous donors to the OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A234575 Triangle T(n,k) read by rows: T(n,k) = floor(n/k) + n mod k, with 1<=k<=n. 2
 1, 2, 1, 3, 2, 1, 4, 2, 2, 1, 5, 3, 3, 2, 1, 6, 3, 2, 3, 2, 1, 7, 4, 3, 4, 3, 2, 1, 8, 4, 4, 2, 4, 3, 2, 1, 9, 5, 3, 3, 5, 4, 3, 2, 1, 10, 5, 4, 4, 2, 5, 4, 3, 2, 1, 11, 6, 5, 5, 3, 6, 5, 4, 3, 2, 1, 12, 6, 4, 3, 4, 2, 6, 5, 4, 3, 2, 1, 13, 7, 5, 4, 5, 3, 7, 6, 5 (list; table; graph; refs; listen; history; text; internal format)
 OFFSET 1,2 COMMENTS T(n,k) = A048158(n,k) + A010766(n,k). - Reinhard Zumkeller, Apr 29 2015 LINKS Antti Karttunen, Rows n = 1..144 of triangular table, flattened EXAMPLE Triangle begins:    1    2  1    3  2  1    4  2  2  1    5  3  3  2  1    6  3  2  3  2  1    7  4  3  4  3  2  1    8  4  4  2  4  3  2  1    9  5  3  3  5  4  3  2  1   10  5  4  4  2  5  4  3  2  1   11  6  5  5  3  6  5  4  3  2  1   12  6  4  3  4  2  6  5  4  3  2  1   13  7  5  4  5  3  7  6  5  4  3  2  1   14  7  6  5  6  4  2  7  6  5  4  3  2  1   15  8  5  6  3  5  3  8  7  6  5  4  3  2  1 PROG (Python 2) for n in range(1, 19):   for k in range(1, n+1):     c = n//k + n%k     print '%2d' % c,   print (MIT/GNU Scheme) (define (A234575bi n k) (+ (floor->exact (/ n k)) (modulo n k))) (define (A234575 n) (A234575bi (A002024 n) (A002260 n))) ;; Antti Karttunen, Dec 29 2013 (Haskell) a234575 n k = a234575_tabl !! (n-1) !! (k-1) a234575_row n = a234575_tabl !! (n-1) a234575_tabl = zipWith (zipWith (+)) a048158_tabl a010766_tabl -- Reinhard Zumkeller, Apr 29 2015 CROSSREFS Cf. A048158, A010766. Sequence in context: A082404 A334725 A120885 * A294733 A275724 A193278 Adjacent sequences:  A234572 A234573 A234574 * A234576 A234577 A234578 KEYWORD nonn,easy,tabl AUTHOR Alex Ratushnyak, Dec 28 2013 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.

Last modified May 17 14:19 EDT 2022. Contains 353746 sequences. (Running on oeis4.)