Let t be the closest triangular number to n! (in case n=2, the only case where we have a tie, take the larger t); then a(n) = n! - t.
A338489
Let t be the closest triangular number to n! (in case n=2, the only case where we have a tie, take the larger t); then a(n) = n! - t.
Terms
- a(0) =0a(1) =0a(2) =-1a(3) =0a(4) =3a(5) =0a(6) =17a(7) =-10a(8) =134a(9) =354a(10) =1329a(11) =4155a(12) =3924a(13) =19797a(14) =-94380a(15) =787794a(16) =2901480a(17) =-1907466a(18) =38192984a(19) =204434670a(20) =-304139881a(21) =115819260a(22) =-12372023755a(23) =6328965122a(24) =-397725674235
External references
- oeis: A338489