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.

A018899 Smallest positive integer not representable as the sum of at most n distinct numbers of form 2^a*3^b.

Original entry on oeis.org

1, 5, 23, 431, 18431, 3448733, 1441896119
Offset: 0

Views

Author

Vassil Dimitrov (vassil(AT)Engn.Uwindsor.Ca), Aug 15 1996

Keywords

Examples

			a(2) = 23 because all smaller positive integers can be expressed as the sum of at most two numbers of the form 2^a * 3^b but not 23: 1=1, 2=2, 3=1+2, 4=1+3, 5=2+3, 6=2+4, 7=3+4, 8=2+6, 9=3+6, 10=4+6, 11=3+8, 12=4+8, 13=4+9, 14=6+8, 15=6+9, 16=4+12, 17=8+9, 18=6+12, 19=3+16, 20=8+12, 21=9+12, 22=6+16.
		

Crossrefs

Programs

  • Mathematica
    With[{s = Sort@ Flatten@ Table[2^a * 3^b, {a, 0, Log2@ #}, {b, 0, Log[3, #/(2^a)]}] &[2^16]}, {1}~Join~Array[Block[{k = 1}, While[! FreeQ[#, k], k++]; k] &@ Union[Total /@ Permutations[s, #]] &, 3]] (* Michael De Vlieger, Sep 04 2018 *)

Extensions

a(6) = 1441896119 found by Mike Oakes, Sep 07 2003