cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-10 of 13 results. Next

A139566 a(n) is the sum of squares of digits of a(n-1); a(1)=15.

Original entry on oeis.org

15, 26, 40, 16, 37, 58, 89, 145, 42, 20, 4, 16, 37, 58, 89, 145, 42, 20, 4, 16, 37, 58, 89, 145, 42, 20, 4, 16, 37, 58, 89, 145, 42, 20, 4, 16, 37, 58, 89, 145, 42, 20, 4, 16, 37, 58, 89, 145, 42, 20, 4, 16, 37, 58, 89, 145, 42, 20, 4, 16, 37, 58, 89, 145, 42, 20, 4, 16, 37
Offset: 1

Views

Author

Robert Gornall (rob(AT)khobbits.net), Jun 11 2008

Keywords

Crossrefs

Cf. A003132 (the iterated map), A003621, A039943, A099645, A031176, A007770, A000216 (starting with 2), A000218 (starting with 3), A080709 (starting with 4), A000221 (starting with 5), A008460 (starting with 6), A008462 (starting with 8), A008463 (starting with 9), A122065 (starting with 74169). - M. F. Hasler, May 24 2009

Programs

  • Mathematica
    a = {15}; Do[AppendTo[a, Plus @@ (IntegerDigits[a[[ -1]]]^2)], {70}]; a (* Stefan Steinerberger, Jun 14 2008 *)
    NestList[Total[IntegerDigits[#]^2] &, 15, 70] (* or *) PadRight[ {15,26,40},70,{42,20,4,16,37,58,89,145}](* Harvey P. Dale, Jan 28 2013 *)
  • PARI
    /* to check the given terms */
    a=[/* paste the terms here */]; a==vector(#a,n,k=if(n>1,A003132(k),15))
    /* to check the following code, use: a==vector(99,n,A139566(n)) */
    A139566(n)=[15,26,40,16,37,58,89,145,42,20,4][if(n>11,(n-4)%8+4,n)] \\ (End)
    
  • PARI
    Vec(x*(36*x^10+6*x^9-27*x^8-145*x^7-89*x^6-58*x^5-37*x^4-16*x^3 -40*x^2-26*x-15)/((x-1)*(x+1)*(x^2+1)*(x^4+1)) + O(x^70)) \\ Colin Barker, Aug 24 2015

Formula

Eventually periodic with period 8.
a(n) = A008463(n) for n > 4. - M. F. Hasler, May 24 2009
a(n) = a(n-8) for n > 11. - Colin Barker, Aug 24 2015
G.f.: x*(36*x^10 + 6*x^9 - 27*x^8 - 145*x^7 - 89*x^6 - 58*x^5 - 37*x^4 - 16*x^3 - 40*x^2 - 26*x - 15) / ((x-1)*(x+1)*(x^2+1)*(x^4+1)). - Colin Barker, Aug 24 2015

Extensions

More terms from Stefan Steinerberger, Jun 14 2008
Terms checked, using the given PARI code, by M. F. Hasler, May 24 2009
Minor edits and starting value added in name by M. F. Hasler, Apr 27 2018

A068596 Number of 4-ary Lyndon words whose trace and subtrace are both 0 mod 4.

Original entry on oeis.org

1, 0, 1, 1, 11, 44, 169, 588, 1948, 6560, 23133, 84565, 317755, 1198336, 4509419, 16909184, 63409935, 238609052, 902444517, 3429249843, 13076666409, 49977802752, 191312873561, 733365845820, 2815437297416, 10825960652800, 41694907460224, 160823207301705
Offset: 1

Views

Author

Frank Ruskey, Mar 28 2002

Keywords

Comments

The trace of a word is the sum of its characters; the subtrace of a word is the sum of all products of pairs of its characters.

Crossrefs

Extensions

Terms a(15) onward from Max Alekseyev, Apr 09 2013

A074403 Number of 4-ary Lyndon words of length n over Z_4 with trace 0 and subtrace 1.

Original entry on oeis.org

0, 0, 2, 6, 16, 45, 128, 448, 1706, 6528, 24576, 90110, 327680, 1198665, 4438966, 16646144, 62914560, 238605640, 905969664, 3442684722, 13102206738, 49977848925, 191126044672, 732649837760, 2814062572336, 10825959997440, 41705086880768, 160862477970870
Offset: 1

Views

Author

Frank Ruskey and Nate Kube, Aug 22 2002

Keywords

Crossrefs

Extensions

Terms a(15) onward from Max Alekseyev, Apr 09 2013

A074404 Number of 4-ary Lyndon words of length n over Z_4 with trace 0 and subtrace 2.

Original entry on oeis.org

0, 0, 0, 1, 8, 36, 160, 548, 1920, 6496, 23040, 84565, 317440, 1197824, 4508328, 16905344, 63406080, 238602228, 902430720, 3429249843, 13076616480, 49977704448, 191312691200, 733365135860, 2815436626328, 10825959342080, 41694904974720, 160823207301705
Offset: 1

Views

Author

Frank Ruskey and Nate Kube, Aug 22 2002

Keywords

Crossrefs

Extensions

Terms a(15) onward from Max Alekseyev, Apr 09 2013

A074405 Number of 4-ary Lyndon words of length n over Z_4 with trace 0 and subtrace 3.

Original entry on oeis.org

0, 1, 2, 6, 16, 40, 128, 448, 1706, 6579, 24576, 90110, 327680, 1198080, 4438966, 16646144, 62914560, 238612920, 905969664, 3442684722, 13102206738, 49977753600, 191126044672, 732649837760, 2814062572336, 10825961287995, 41705086880768, 160862477970870
Offset: 1

Views

Author

Frank Ruskey and Nate Kube, Aug 22 2002

Keywords

Crossrefs

Extensions

Terms a(15) onward from Max Alekseyev, Apr 09 2013

A074406 Number of 4-ary Lyndon words of length n over Z_4 with trace 1 and subtrace 0.

Original entry on oeis.org

1, 1, 2, 4, 8, 32, 128, 512, 1948, 6963, 24576, 87380, 317440, 1179648, 4438966, 16777216, 63409935, 239541344, 905969664, 3435973836, 13076616480, 49928994816, 191126044672, 733007751680, 2815437297416, 10828603699515, 41705086880768, 160842843834660
Offset: 1

Views

Author

Frank Ruskey and Nate Kube, Aug 22 2002

Keywords

Comments

Same as the number of 4-ary Lyndon words of length n over Z_4 with trace 3 and subtrace 0.

Crossrefs

Extensions

Terms a(15) onward from Max Alekseyev, Apr 09 2013

A074407 Number of 4-ary Lyndon words of length n over Z_4 with trace 1 and subtrace 1.

Original entry on oeis.org

0, 0, 0, 4, 16, 53, 169, 512, 1706, 6144, 23040, 87380, 327680, 1217097, 4509419, 16777216, 62914560, 237677216, 902430720, 3435973836, 13102206738, 50026607709, 191312873561, 733007751680, 2814062572336, 10823317585920, 41694904974720, 160842843834660
Offset: 1

Views

Author

Frank Ruskey and Nate Kube, Aug 22 2002

Keywords

Comments

Same as the number of 4-ary Lyndon words of length n over Z_4 with trace 3 and subtrace 1.

Crossrefs

Extensions

Terms a(15) onward from Max Alekseyev, Apr 09 2013

A074408 Number of 4-ary Lyndon words of length n over Z_4 with trace 1 and subtrace 2.

Original entry on oeis.org

0, 1, 2, 4, 11, 32, 128, 512, 1920, 6963, 24576, 87380, 317755, 1179648, 4438966, 16777216, 63406080, 239541344, 905969664, 3435973836, 13076666409, 49928994816, 191126044672, 733007751680, 2815436626328, 10828603699515, 41705086880768, 160842843834660
Offset: 1

Views

Author

Frank Ruskey and Nate Kube, Aug 22 2002

Keywords

Comments

Same as the number of 4-ary Lyndon words of length n over Z_4 with trace 3 and subtrace 2.

Examples

			a(3;1,2)=2 since the two 4-ary Lyndon words of trace 1, subtrace 2 and length 3 are { 023, 032 }.
		

Crossrefs

Extensions

Terms a(15) onward from Max Alekseyev, Apr 09 2013

A074409 Number of 4-ary Lyndon words of length n over Z_4 with trace 1 and subtrace 3.

Original entry on oeis.org

0, 0, 1, 4, 16, 53, 160, 512, 1706, 6144, 23133, 87380, 327680, 1217097, 4508328, 16777216, 62914560, 237677216, 902444517, 3435973836, 13102206738, 50026607709, 191312691200, 733007751680, 2814062572336, 10823317585920, 41694907460224, 160842843834660
Offset: 1

Views

Author

Frank Ruskey and Nate Kube, Aug 22 2002

Keywords

Comments

Same as the number of 4-ary Lyndon words of length n over Z_4 with trace 3 and subtrace 3.

Examples

			a(4;3,3)=4 since the four 4-ary Lyndon words of trace 3, subtrace 3 and length 4 are { 0111, 0133, 0313, 0331 }.
		

Crossrefs

Extensions

Terms a(15) onward from Max Alekseyev, Apr 09 2013

A074410 Number of 4-ary Lyndon words of length n over Z_4 with trace 2 and subtrace 0.

Original entry on oeis.org

1, 1, 1, 4, 11, 45, 169, 576, 1948, 6579, 23133, 84820, 317755, 1198665, 4509419, 16908288, 63409935, 238612920, 902444517, 3429289164, 13076666409, 49977848925, 191312873561, 733365665600, 2815437297416, 10825961287995, 41694907460224, 160823214491940
Offset: 1

Views

Author

Frank Ruskey and Nate Kube, Aug 22 2002

Keywords

Crossrefs

Extensions

Terms a(15) onward from Max Alekseyev, Apr 09 2013
Showing 1-10 of 13 results. Next