[go: up one dir, main page]

login
A105340
a(n) = n*(n+1)/2 mod 2048.
1
0, 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, 66, 78, 91, 105, 120, 136, 153, 171, 190, 210, 231, 253, 276, 300, 325, 351, 378, 406, 435, 465, 496, 528, 561, 595, 630, 666, 703, 741, 780, 820, 861, 903, 946, 990, 1035, 1081, 1128, 1176, 1225, 1275, 1326, 1378, 1431, 1485, 1540, 1596, 1653, 1711, 1770, 1830, 1891, 1953, 2016, 32
OFFSET
0,3
COMMENTS
Period 4096. - Charles R Greathouse IV, Oct 16 2012
MATHEMATICA
Mod[Accumulate[Range[0, 70]], 2048] (* Harvey P. Dale, Sep 18 2019 *)
PROG
(PARI) a(n)=n*(n+1)/2%2048 \\ Charles R Greathouse IV, Oct 16 2012
CROSSREFS
See A105198 for further information.
Sequence in context: A161680 A000217 A179865 * A176659 A109811 A025747
KEYWORD
nonn,easy
AUTHOR
Oscar Takeshita, May 01 2005
EXTENSIONS
Removed formulas that were wrong at indices >= 65 because the "mod 2048" part of the definition had been ignored R. J. Mathar, Jan 26 2010
STATUS
approved