[next] [prev] [prev-tail] [tail] [up]
use indets with type 'indexed'
indets
'indexed'
expr:=16*a[3]+6*a[1]; terms:=indets(expr,'indexed'); terms := {a[1], a[3]} #to find maximum index, then do map(x->op(x),terms) {1, 3}
[next] [prev] [prev-tail] [front] [up]